how to run java with main 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
}
}