Why do you need a main class. Every tutorial I've tried doesn't use a main class, and many of the simpler programs don't use a public static void main (String[] args) type function.
What are these for, why are they necessary, what rules are there in using them, and why doesn't it let you run without it?
Thank you so much in advance to whoever can help.