how to run main method of one class in another class java code example
Example: java run main of another class
public class CallClass{
public void call(){
ToBeCalledClass.main(null); //or whatever args you want
}
}
public class CallClass{
public void call(){
ToBeCalledClass.main(null); //or whatever args you want
}
}