Java Class/Object Syntax

PHOTO EMBED

Wed May 19 2021 09:36:41 GMT+0000 (UTC)

Saved by @benrobo #php #javasc #html #python

public class Main {
  int x = 5;

  public static void main(String[] args) {
    Main myObj = new Main();
    System.out.println(myObj.x);
  }
}
content_copyCOPY