Hi, I have a problem with my code in calling another method from main method in the same class.
sample code:
class MyClass
{
public static void main( String[] args )
{
//call ProcessCommand();
}
public void ProcessCommand()
{
//statement;
}
}
I tried to use this.ProcessCommand but got a compilation error;
MyClass.java:5: non-static variable this cannot be referenced from a static context
this.ProcessCommand();
Any help is highly appreciated. Thanks much.
Bob
