class A{
void method(){
System.out.println("Hello world");
}
}
class B{
void myMethod(){
A.method();
}
}
Can anyone tell me why I am getting this error.( non-static method method() cannot be referenced from a static context).Reffering context is not static.:?: