java running main from another class 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
}
}