Java: First Contact

Roger Garside and John Mariani, Computing Department, Lancaster University

Course Technology / September 1997 / ISBN 1-85032-316-X
46.65 US dollars / 21.95 pounds sterling

Chapter 4 Examples

You can download each file individually, or download a Unix zip file containing all the files mentioned (including this one).

Chapter4n1.java - the source code for the example referred to in section 4.1 (pp77)

Chapter4n1a.java - the source code of a program to demonstrate a simple "if" statement (p87)

Chapter4n1b.java - the source code of a program to demonstrate a more complicated "if" statement (pp92-3)

Chapter4n1c.java - the source code to demonstrate a simple "switch" statement (p103)

Chapter4n1d.java - the source code to demonstrate a more complicated "switch" statement (p103-4)

Chapter4n2.java - the source code for the example referred to in section 4.8 (p105-7)


Return to main page | examples page

last updated: 5th February 1998