Hey, I am just beginning to learn java, started a day ago, and I ran into some trouble when compiling a program. It has multiple classes, one of them being the main, so I saved the file as the same name as the main one. when I tried to compile it, the line said to save each class separate. what am i supposed to do?
Im going through the book head first java second edition. Im stuck on the guessing game app. There are three classes, one main, and I am unsure of whether to break it into multiple files or not, and how to do that if am to do that.