Java work 9/5

Complete 3 diffirents tasks