
void println( String s )
prints the String s to the OutputStream and appends a newline.
Random
Package: java.util
Description: Generates random numbers
Constructor
Random( )
creates a random number generator.
A Useful Method of the Random Class
Return value Method name and argument list
int nextInt ( int number )
returns a random number ranging from 0 up to,but not includ-
ing,number in uniform distribution.
Scanner
Package: java.util
Description: provides support for reading from an input stream or file
Constructors
Scanner( InputStream source )
creates a Scanner object for reading from source. If source is
System.in,this instantiates a Scanner object for reading ...