Understanding Java: Chapter 6
These pages contain links to the programs that are developed in Chapter 6. The title of this chapter is: Using if statements to make decisions.
Sqrt1.java | A program with an if statement that has no else part |
Sqrt2.java | A program with an if statement that does have an else part |
QeIfs.java | Dealing with the special cases of a quadratic equation |
StringCompare.java | A program illustrating some possibilities when comparing two strings |
VariableScope.java | This program illustrates the scope of the identifier of a variable |
barry.cornelius@oucs.ox.ac.uk.