how to call the main method of another class in 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
}
}