Execution of java program with arguments in Netbeans IDE

Nithya.P

Nithya.P

@nithyap-niSDb1 Oct 27, 2024
Hi,
In Netbeans IDE, I have to run multiple java files with arguments in each and all the files should be in a single project. Can any one please help me with my problem.

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Vishal Sharma

    Vishal Sharma

    @vishal-pysGmK May 30, 2013

    Use any one file as your main program (which consist of your main())
    and keep the remaining programs with class definitions.
    you can access those classes using your main program.

    suppose your main program is abc.java and supporting program is def.java with class name def and a function func()

    then from your main program you can use this function by doing this

    def.func()