Lab 9:
(Solution)
Take a look at the full solution.
Solution:
primlab9.java
Your solution may differ slightly.