Course Supplements
The following items supplement the information in your textbook.- Textbook Web Site
- This web site contains a number of resources for use with our textbook.
- Sun Microsystems Java site
- Download the JDK and accompanying documentation from here.
- Auburn University jGRASP site
- Download the jGRASP development environment and accompanying documentation from here.
- Notes on Setting Up jGRASP
- Downloadable Microsoft Word document written by Lawrenceville faculty member Nat Kumaresian that gives some helpful information on setting up a class path to make using your own imported packages easier under jGRASP.
- The Eclipse Integrated Development Environment
- A more powerful and full-feature (and correspondingly more complex to learn) environment for doing Java programming.
- The NetBeans Java Integrated Development Environment
- Another alternative to jGRASP
- Troubleshooting Guide
- Tips and hints for locating and fixing program errors. Under development!
Chapter References
These are references suggested by the textbook author, as listed in the book's teaching guide.
- Chapter 1
- Chapter 2
- Chapter 3
- Java's String Class
- Usage of printf (written for C language but Java's use is identical)
- Using the JOptionPane Class
- Scanner class documentation
- Chapter 4
- Chapter 5
- Chapter 6
- Chapter 7
- Chapter 8
- Chapter 9
- Chapter 10
- Chapter 11
- Chapter 12
- Chapter 13
- Chapter 14
- Chapter 15
- Cloning
- Another compareTo method example.
- Tutorial on generic methods.
- Frequently Asked Questions about type parameters.
- Overriding generic methods in a generic class
- Creating a list using an array and sorting it using the Comparable & Comparator interfaces
- Iterations over an unsorted list
- Hashing and Cloning
- Making your clone() method final
- Comparable Objects
- Comparable Interface, part I
- Comparable Interface, part II
- Using and programming generics in J2SE5.0
- A simple generic class with two type parameters T and V.
- Generics FAQ
- Chapter 16
- Chapter 17
- Chapter 18
- Chapter 19
Lab Cover Sheets
Download and use these when submitting labs.
- Chapter 1
- Chapter 2
- Chapter 3
- Chapter 4
- Chapter 5
- Chapter 6
- Chapter 7
- Chapter 8
- Chapter 9
- Chapter 10
- Chapter 11
- Chapter 12
- Chapter 13
Program Examples
The following program examples are provided to supplement the textbook examples.Resources and References
Classic Problems
-
Tower of Hanoi
-
- Problem description
- This Java-based demonstration of the Towers of Hanoi puzzle allows you to solve the puzzle for any number of disks.
-
John Conway's Game of Life
-
- Eric Weisstein's description of Life
- A Java-based implementation of the simulation.
-
Koch Snowflakes
-
- Discussion by Eric Weisstein.
- Discussion by Ryan O'Leary.
- Java applet to render Koch Snowflakes.
-
Fibonnaci Number Series
-
- A comprehensive site covering Fibonnaci's work.
- Fibonnaci's biography
- Fibonnaci's Rabbit Problem and other mathematical games
-
Binary Trees
- Java applet demonstration of building a binary tree of words.
-
Stacks and Queues
-
Sorting
-
- Demonstration of three versions of Shell sort
- Demonstration of several versions of QuickSort.
- Java applet demonstration of a heapsort.
- Comparison demonstration (Java applet) of six different sorting algorithms.
-
Miscellaneous
-
- The famous Dining Philosophers problem demonstrated.
