Originally Posted by
Ezzaral
Your class name needs to match the file name. You have named the class Main put placed it in midterm1.java from the looks of it.
Side note: You really could use some more white space to separate your methods and logical sections within the methods. It will make it much easier for you and others to follow the code.
So I should just rename the class as midterm1?