Package memely
Class Main
java.lang.Object
memely.Main
public class Main extends Object
Console interface to the expression system.
PS3 instructions: you are free to change this user interface class.
-
Method Summary
Modifier and Type Method Description static void
main(String[] args)
Read expression and command inputs from the console and output results.static void
showInWindow(String windowTitle, BufferedImage image)
Display an image in a new window exactly sized to fit the image.
-
Method Details
-
main
Read expression and command inputs from the console and output results. An empty input terminates the program.- Parameters:
args
- unused- Throws:
IOException
- if there is an error reading the input
-
showInWindow
Display an image in a new window exactly sized to fit the image.- Parameters:
windowTitle
- title for window's titlebarimage
- image to display
-