Hello and welcome to JavaRanch.
You might very well have got the answer if you would have looked into the J2SE docs.
I have done a part for you.
This comes directly from the API docs.
out
public static final PrintStream out
The "standard" output stream. This stream is already open and ready to accept output data. Typically this stream corresponds to display output or another output destination specified by the host environment or user.
For simple stand-alone Java applications, a typical way to write a line of output data is:
System.out.println(data)
See the println methods in class PrintStream.
Do the rest of it on your own.
Hope this helps.
[ December 12, 2008: Message edited by: Sudipto Shekhar ]