Creating and running a public class
golazo08 (0)

Why does my public class SecondClass not run? Do I always have to use public Main? What if I want to create and run a public class?

You are viewing a single comment. View All
Geocube101 (202)

I can't seem to see or find your code, but the Main.java file must contain a Main class and a main function for it to run. You can create other classes and run them from main though.