From ggc
|
01 /**
02 * All about my application here.
03 * @authorthis is the Javadoc tag for documenting who created the source code Jam Jenkins
04 */
05 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 ZeroToOne
06 {open braces start code blocks and must be matched with a close brace
07 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)
08 {open braces start code blocks and must be matched with a close brace
09 forfor is a looping structure for repeatedly executing a block of code(intint is the type for whole numbers and it is short for integer j=this assignment operator makes the left side equal to the right side0; j<4; j++this is the increment operator, which increases the variable by 1)
10 {open braces start code blocks and must be matched with a close brace
11
12 doubledouble is the type for numbers that can contain decimal fractions times=this assignment operator makes the left side equal to the right side12;
13 doubledouble is the type for numbers that can contain decimal fractions y=this assignment operator makes the left side equal to the right side(j+adds two numbers together or concatenates Strings together0.5)/10.0;
14 forfor is a looping structure for repeatedly executing a block of code(intint is the type for whole numbers and it is short for integer i=this assignment operator makes the left side equal to the right side0; i<times; i++this is the increment operator, which increases the variable by 1)
15 {open braces start code blocks and must be matched with a close brace
16 doubledouble is the type for numbers that can contain decimal fractions x=this assignment operator makes the left side equal to the right side(i+adds two numbers together or concatenates Strings together0.5)/times;
17 Wiki.out.println("("+adds two numbers together or concatenates Strings togetherx+adds two numbers together or concatenates Strings together", "+adds two numbers together or concatenates Strings togethery+adds two numbers together or concatenates Strings together")");
18 }close braces end code blocks and must match an earlier open brace
19 Wiki.out.println("End row");
20 }close braces end code blocks and must match an earlier open brace
21 }close braces end code blocks and must match an earlier open brace
22 }close braces end code blocks and must match an earlier open brace
|
Download/View ZeroToOne.java