Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
public class Main { int x = 10; public static void main(String[] args) { Main myObj = new Main(); myObj.x = 25; // x is now 25 System.out.println(myObj.x); } }
25