Answers for "how to run main method of one class in another class java"

1

java run main of another class

public class CallClass{

    public void call(){
       ToBeCalledClass.main(null); //or whatever args you want
    }
}
Posted by: Guest on March-25-2021

Code answers related to "how to run main method of one class in another class java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language