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
To run, you just need
java Main
instead of putting every class on the command line.
Did you declare a package in your .java files? Like,
package myjava;
? If so, the command string must be
java myjava.Main
Does that answer your questions?