New Terms
BufferedStreamReader A Java class that is used to read data from a device. For this book, it is used only to read data from the keyboard.
catch The catch-block allows the Java program to handle its own errors, and not simply terminate when an exception happens. When an exception occurs inside of a try-block, the code inside of the catch-block is executed to handle that error.
crash When a program stops in an unplanned manor. Usually the crash is the result of an exception that was not caught.
Exception An exception occurs in Java when an error occurs. Exceptions, if not caught, will cause the program to crash.
InputStreamReader A Java class that is used to read data from a device. For this book, it is used only to read data from the keyboard.
NumberFormatException An exception that occurs when a non-number string is passed to one of the parse functions. For example, the string “182g” would produce this exception if used with Integer.parseInt.
Numeric Datatype A datatype that holds numbers, and can have mathematical operations performed on it.
print A Java method that will display a line of text, but not move to the next line.
println A Java method that will display a line of text, and will move to the next line.
readLine A Java method that prompts the user to enter a line of text. The user is allowed to enter text until the user presses the ENTER key.
String Datatype A datatype that holds text information. You cannot preform mathematical operations on the String.
System A Java class that provides many important methods and variables for interacting with the computer system.
System.in The standard input. This variable is used to receive keyboard input from the user.
System.out The standard output. This variable is used to display data on the console.
try The try block encloses code that might cause an exception. If an exception does happen in a try block, the try block’s catch block executes.




