Reading (for next class): PLP, Section 8.4 until the beginning of 8.4.2, and Chapter 13 until the beginning of 13.2.
The file Primes.java is supposed to print out all the prime numbers less than 100. It is your starter code for this homework.
This homework is to be submitted electronically, in a folder
class23. You should just submit the single file
hasNext()methods in the
PIterclass so that it returns successive prime numbers.
mainas a for-each loop instead of a while loop with an explicit iterator.