Java task 2 is completed