I am trying to compile and run a program on my Mac, but the program has multiple classes. I usually use Terminal (Mac equivalent of Windows Console) to compile and run my programs.
The steps I take are:
cd TheDirectoryTheProgramIsIn
(directory)
javac filename.java
(compile)
java filename
(run)
So what I know already is that each class has to be in separate files. I was also informed of something called a package, and I don't know what that is. Maybe that is relevant.