From JavaWIDE Sandbox
|
01
02 /**
03 * All about my application.
04 * @authorthis is the Javadoc tag for documenting who created the source code angreaux
05 */
06 publicpublic is used to indicate unrestricted access (any other class can have access) classclass is a group of fields and methods used for making objects simple
07 {open braces start code blocks and must be matched with a close brace
08 publicpublic is used to indicate unrestricted access (any other class can have access) staticstatic means that an instance is not required for access (class level access) voidvoid means the method does not return a value mainThe main method is the place where applications begin executing.( String[brackets are typically used to declare, initialize and index (indicate which element of) arrays]brackets are typically used to declare, initialize and index (indicate which element of) arrays args )
09 {open braces start code blocks and must be matched with a close brace
10 System.out.println( "In 1492 Columbus sailed the ocean blue!" );
11 }close braces end code blocks and must match an earlier open brace
12 }close braces end code blocks and must match an earlier open brace
|
Download/View simple.java