0_0_6750397_28805\Main.java:6: class Main2 is public, should be declared in a file named Main2.java public class Main2 { ^ 1 error