Thank you for visiting Blazing Games

The sample program

While we have covered a lot of ground already, there is one last bit of information we need before we can go over the sample program. That is sending output to the console. Java programs automatically create an instance of the System class, which can be used to send output to the console by using Systems out class, which has a println statement. In other words, when you see System.out.println(text to output); you are seeing a fairly complex method call.

Here is the source code (see sidebar to download it with the compiled version). Dots represents lines.

Previous Chapter 3 Contents Page 10 of 10 Book Contents Next

About - Privacy Policy - Contact - Links - FAQ
Copyright © 2005-2006 Blazing Games Inc. All Rights Reserved