homework5.java