assignment4.java