I’m getting the Cannot make static reference to a non-static method error but I don’t appear to be making a static reference.. my code is something like the following…
public void run() {
MyClass mc = new MyClass();
mc.method();
}
public void MyClass(){
myothermethod(); //error here.
}
I’ve create a new instance of my class so the reference wont be static but it’s still giving me the same error.
myothermethod();this must be non static method available in the same class