My professor asked us to create a Java program that would be able to run in command prompt but could also be opened using NetBeans.
The program is about using the di
You will have a build directory inside your project. Navigate to it. Next open the classes folder. Now here open the terminal and run java x/y where x is the name of the package your main class is in and y is the name of that java file
java x/y