Feb. 14
Examples from Feb. 23
PrimeList.java: This is an example of loops. It prints a list of all prime numbers up to value N, which is defined in the constructor for the class.
Average.java and SimpleInput.java : This is a simple example of a program that uses David Barnes' SimpleInput class, which is described in our text. The program reads a list of integers from the user and prints their average. The list is terminated by value 0.
PrimeCheck.java and SimpleInput.java: This is another program that uses the SimpleInput class. This takes the isPrime() method from program PrimeList and uses it to check for primality values that are given by the user. Again, the input loop terminates when it gets value 0.