lab 2 Java. variant 19