My laboratory work on java. Part 2.