Java task 3 is completed