Get your own Java server Result Size: 625 x 533
MyClass.java
Person.java
 
public class Main {
  public static void main(String[] args) {
    Person myObj = new Person();
    myObj.setName("John");
    System.out.println(myObj.getName());
  }
}

                  
John