updated java files
work on cs hw2