Added Java version of HW3 for extra credit.