Can't run non-main classes


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. 


评论操作 固定链接

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