Java assignment

Java assignment