See the little green arrow just to the left of Solution and main, in the number bar? Hit that from now on. IntelliJ allows you to set the main method you want to run when you hit the green arrow at the top. When switching tasks it can be confusing which one you are running as a beginner, but if you default to hitting the green arrow next to either Solution or main it will run the one you want. (It also sets the top green arrow to run that one from then on.)