user46759
user46759

Reputation: 103

Connect a class to the main class

I am very new to java, I have one class ConnectR.java and it has main method, also I have MainApp class which is the main application. so I want to know If I want to click a button in the MAinApp how can I implement the ConnerR.java Class. thank you very mcuh

Upvotes: 1

Views: 110

Answers (1)

Juned Ahsan
Juned Ahsan

Reputation: 68715

main is a special method but still a method. So it can be called like any other method:

    //Call ConnectR main method
    ConnectR.main(stringarrayinput);

Upvotes: 1

Related Questions