MyClass.java
 

public class MyClass {
  public static void main(String[] args) {
    String greeting = "Hello";
    System.out.println(greeting);
  }
}

Result:
Hello