Showing posts with label system. Show all posts
Showing posts with label system. Show all posts

Tuesday, February 5, 2013

Week-1: 1.6: Printing to the Output Window


You can run the code you have so far, and turn it into a program. It doesn't do anything, but it will still compile. So let's add one line of code just so that we can see how it works.
We'll output some text to a console window. Add the following line to your main method:

public static void main( String[ ] args ) {
System.out.println( "My First Project" );
}

When you type the full stop after "System", NetBeans will try to help you by displaying a list of available options:

Click for Details