Java Selection

William Johnston Buchanan · 1998

A decision is made with the if statement. It logically determines whether a conditional expression is TRUE or FALSE. For a TRUE, the program executes one block of code; a FALSE causes the execution of another (if any). The keyword else identifies the FALSE block. In Java, braces ({ }) are used to define the start and end of the block.

Read the paper · More papers on PaperTik