Java project for proj1