assignment 1 in java done