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 

0

请先登录再写评论。