CIS 35A: Introduction to Java Programming

Home | Green Sheet | Lectures | Assignments | FAQ

Control

Control Statements
if/else and switch
if/else

A computer program selects the next action based on predetermined criteria or conditions. Java has 3 selection statements:

  • the if statement,
  • the if/else statement, and
  • the switch statement
Previous | if/else and switch | if/else | switch | Application | Next