java homeworks for 2.semester