add java in assignment3