MyClass.java
 

public class MyClass {
  public static void main(String[] args) {
    String txt1 = "It's alright";
    String txt2 = "That's great";
    System.out.println(txt1);
    System.out.println(txt2);
  }
}

Result:
It's alright
That's great