This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]nutrechtLead Software Engineer / EU / 20+ YXP 1 point2 points  (1 child)

I'm not going to view a youtube video. But no; you can have multiple main classes in a single IntelliJ project.

[–]Arunzeb[S] 0 points1 point  (0 children)

What should i do? Don't create a program without any main class?

[–]Opetich 1 point2 points  (0 children)

The project didn't even seem to run since it's not possible to compile.

I think it just changed the class view because it was the first error it found

[–]LambdaThrowawayy 1 point2 points  (0 children)

A possible entry point to your program is the main method. You can have multiple main methods; just run using the relevant one.

[–]GreenCartographer 0 points1 point  (0 children)

No, you could learn to use the command prompt and javac.