run non-static method in main java code example
Example: can you run non static method on main
//You simply need to create an instance of the Object you created
public Class Obj{
public void nonStaticMethod(){
//execute code
}
public static void main(string args[]){
Obj obj = new Obj();
obj.nonStaticMethod
}
}