[Solved] Compile single .java file with two classes into two .class files [closed]

I am not sure what you are doing wrong so I will just show you how it can be done. Lets say you have directories and files [myProject] | +–[src] | | | +–[com] | | | +–[DatingService] | | | +– Main.java | +–[classes] and your Main.java file looks something like package com.DatingService; class … Read more