ICS3U - Turing to Java - Selection (IF/ELSE)
Looks at the basic if/else selection structure in Turing and Java. The look of the structure in Java can be confusing due to the many brace bracket pairs. This can be particularly bad with nested structures until one is accustomed to Java (or other "curly bracket" languages). Remember to use identing and formatting to help keep your code visually organized and easier to read.
Looks at the basic if/else selection structure in Turing and Java. The look of the structure in Java can be confusing due to the many brace bracket pairs. This can be particularly bad with nested structures until one is accustomed to Java (or other "curly bracket" languages). Remember to use identing and formatting to help keep your code visually organized and easier to read.