well you need to assign the object to a variable for starters, so you can access it.

for example:



public static void main(String[] args) {
MyClass obj = new MyClass();
}