Call myMethod
on the object.
public class MyClass {
public void myMethod() {
System.out.println("Hello World");
}
public static void main(String[] args) {
MyClass myObj = new MyClass();
@(5).@(8)();
}
}
public class MyClass {
public void myMethod() {
System.out.println("Hello World");
}
public static void main(String[] args) {
MyClass myObj = new MyClass();
myObj.myMethod();
}
}