My friend is new to programming. He said he had a problem in his code and shared his screen on Skype. I saw he had instantiated his Main class to use all the functions, etc. It looked like this:
public static void main(String[] args) {
Main main = new Main();
main.Example();
}
I've also noticed this in a couple tutorials online. The thing is, since you shouldn't really have more than one main, why instantiate it?