I was trying to write a Java program with more than 1 public class and it gave me the following error:
Class [classname] is public,should be declared in a separate file named
[classname].java
Can't seem to find a convincing answer as to why this is happening.