Java client semester 1