Solved Need Help With This Java Exercise From The Book Think Java By

Solved Need Help With This Java Exercise From The Book Think Java By