Static Instance Variables
The Keyboard class inputs characters from the keyboard, and
interprets it as whitespace delimited pieces of data.
Whitespace consists of the characters
' ', '\t', '\r', '\n', '\f'.
Static Methods
  Class JOptionPane
import javax.swing.JOptionPane;
 
Show an input box.
Show a message box. The return value is the string that the
user enters.Class String
Constructor
Methods
Creates a String object from the String parameter str.
Usually, str is expressed as a constant string in double
quotes.
For more methods, see page 739 of Lewis and Loftus.
Returns the length of the string.
Returns the character at the position pos, where the position is
zero-based.Class Integer
The class Integer is an example of a wrapper class. We may or
may not cover wrapper classes later in this course. What
interests us now are its static instance variables.
The classes Byte, Boolean, Char, Float, Long, and Short are also
available. Each of these classes contains MAX_VALUE and MIN_VALUE
instance variables. See the descriptions of these classes in Appendix M
of Lewis and Loftus for more details, including methods.
The largest posible int value 2147483647.
The largest posible int value -2147483648.Class Keyboard
import cs1.Keyboard;
 
Read and return an integer from the keyboard. If the input cannot
be interpreted as an integer, Integer.MIN_VALUE is returned.
Returns true if errors due to illegal input are being printed to
the screen, false otherwise.
Determines whether error messages due to illegal input
are printed to the screen.Class Math
The Example Math in Day2 should be self explanatory.