Understanding Java   Chapters  01  02  03  04  05  06  07  08  09  10  11  12  13  14  15  16  17  18  19  20  21

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.javaA program with an if statement that has no else part
Sqrt2.javaA program with an if statement that does have an else part
QeIfs.javaDealing with the special cases of a quadratic equation
StringCompare.javaA program illustrating some possibilities when comparing two strings
VariableScope.javaThis program illustrates the scope of the identifier of a variable


© 1998-2002 Barry Cornelius
Any queries about this page should be sent to barry.cornelius@oucs.ox.ac.uk.
This page was last updated on 6 March 2001.