Add a bit Java code

Add a bit Java code
What is doing plain text outside class definition? @DaryaBaraukova