IntelliJ IDEA不正确运行Java项目 [英] IntelliJ IDEA not correct Run java project
本文介绍了IntelliJ IDEA不正确运行Java项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
点击运行"后,我看到以下内容:
After clicking Run, I see this:
如何删除它并显示结果:
How to remove it and display the result:
System.out.print ("ASdsddasad");
还是IntelliJ IDEA错误?
Or is it an IntelliJ IDEA bug?
推荐答案
您正在运行测试类,因此您看不到"ASdsddasad"
.要运行主要的Java类,可以从 public static void main(String [] args)
方法中单击绿色箭头,然后选择 Run'Main.main()'
或您可以右键单击课程的任何部分,然后选择相同的选项 Run'Main.main()'
You are running test class, for that reason you cannot see "ASdsddasad"
. To run the main java class, you can click on green arrow from public static void main(String[] args)
method and choose Run 'Main.main()'
or you can right click on any part of your class and choose the same option Run 'Main.main()'
这篇关于IntelliJ IDEA不正确运行Java项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文