Added Java assignment 2