Java lab 5