Search code examples
javaintellij-ideagradleintellij-14

IntelliJ IDEA not correct Run java project


After clicking Run, I see this:

enter image description here

How to remove it and display the result:

System.out.print ("ASdsddasad");

Or is it an IntelliJ IDEA bug?


Solution

  • 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()'