
-----------------------------------
Prince Pwn
Wed Feb 03, 2010 9:35 pm

Keyboard Cursor HSA Console
-----------------------------------
In the following program I am prompting user input and I'm using a carriage return and line feed to locate my cursor at the very bottom. The problem I'm having is if the user holds down the enter key at a prompt, my graphics "Scroll Up". I am porting the code into a JFrame using KeyListener, hoping it will fix my problem, but it's taking quite a while and I'd rather submit in my assignment ASAP then get some sleep. I attached the StackeQueueTester.java and stack.class files if you wish to run the code for a visual glance.


/***********************************

    Program:    Stack and Queue Tester
    Date:       February 3, 2010

***********************************/

import hsa.Console;     // Holtsoft's console
import java.awt.*;      // Graphics

public class StackQueueTester
{

    static Console c;

    public static boolean isNumeric (String number)  // Checks if param is a number
    {
        try
        {
            Integer.parseInt (number);      // Attempt to convert number
        }
        catch (Exception e)
        {
            return false;                   // Fail
        }
        return true;                        // Succeess
    }


    public static void main (String
