Can't run non-main classes

Answered

I'm a newbie to IDEs. I'm trying to get a simple program to run. Here's an example: I've got the typical "Hello World!" class, and then I created a new class myself. For some reason Intellij only reads the main class. What am I doing wrong? I don't even need the main class. 

 

0
1 comment

Only the main() method could be executed as an entry point of a java application. 

The getPrint() method could not be used as an entry point 

0

Please sign in to leave a comment.