Java Programming with Eclipse lesson 4 – Integer variable, If/else statement

In this lesson we declare an integer variable, assign a value to it, then use an If/else statement to decide what to output to the screen based on evaluating the contents of the variable using a comparison operator.