logo_michael-thomas.jpg (3143 bytes)

Chapter 6
Decisions, Decisions

Click here to go back to the courses home page.

Java Programs

bullet

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

bullet

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

bullet

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

bullet

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

bullet

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

bullet

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

bullet

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