Lab 7 java