Class | Tree | Deprecated | Index | Help
PREV | NEXT SHOW LISTS | HIDE LISTS

Class Calculator.Main

java.lang.Object
    |
    +----Calculator.Main

public class Main
extends java.lang.Object
This is a basic skeleton application which launches the necessary code for a four-function calculator. It relies on a (Runnable) ButtonHandler to repeatedly call getButton() and consume the buttonIDs that the CalculatorGUI object produces.

See Also:
Calculator, CalculatorGUI, ButtonHandler, cs101.util.IntBuffer

Constructor Summary
 Main()
 
 

Method Summary
static void  main(java.lang.String[] argv)
Expects a single argument on the command line, which is the name of the student's button handler class.
static void  printExceptionAndQuit(java.lang.Exception e)
Print the exception and any other debugging information to the standard error stream, and quit.
static void  printUsageAndQuit()
Print the usage information to the standard error stream, and quit.
 
Methods inherited from class java.lang.Object
 equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Main

public Main()
Method Detail

printUsageAndQuit

public static void printUsageAndQuit()
Print the usage information to the standard error stream, and quit.

printExceptionAndQuit

public static void printExceptionAndQuit(java.lang.Exception e)
Print the exception and any other debugging information to the standard error stream, and quit.

main

public static void main(java.lang.String[] argv)
Expects a single argument on the command line, which is the name of the student's button handler class. The student's class should have a constructor that accepts either a Calculator, or nothing at all.

Class | Tree | Deprecated | Index | Help
PREV | NEXT SHOW LISTS | HIDE LISTS