Answers for "java create new class"

0

classes in java

public class Main {
  int x = 5;

  public static void main(String[] args) {
    Main myObj = new Main();
    System.out.println(myObj.x);
  }
}
Posted by: Guest on September-25-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language