Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Create a Class

public class Main {
  int x = 10;

  public static void main(String[] args) {
    Main myObj = new Main();
    System.out.println(myObj.x);
  }
}
 
PREVIOUS NEXT
Tagged: #Create #Class
ADD COMMENT
Topic
Name
2+4 =