Practical 1 java