Say I setup a program in intelliJ in java and I have multiple classes and everything setup. I am trying to run this program from the command line, but I keep seeing in tutorials they are using the command javac programname.java and they are compiling the program and then running it.
But I have multiple classes and I'm using intelliJ to do everything. Do I just compile it from intellij or what's the best way to do this? Do I even need to compile it, or is it all ready compiled?
I just want to be able to run my main class from the command line.