logo_michael-thomas.jpg (3143 bytes)

Chapter 6
Decisions, Decisions

Click here to go back to the courses home page.

Java Programs

Listing 6.1, v1.2 - If statement: Guess a number (Part 1), no hi/low help.

Listing 6.2, v1.2 - If/Else statement: Guess a number (Part 2), add hi/low.

Listing 6.3, v1.2 - For Loop: displaying "*" for a choose # of times.

Listing 6.4, v1.2 - While loop:  displaying "*" for a choose # of times.

Listing 6.5, v1.2 - Do While loop: displaying "*" for a choose # of times.

Listing 6.6, v1.2 - Break command: displaying "*" for a choose # of times.

Listing 6.7, v1.2 - Switch/Case statement: Rock, Paper, Scissors game.