-1

I am beginner with java and with IntellJ. I did my 'Hello-world' but result does not appear anywhere. I did search for help and I found many this kind of answers like this, which does not help me: Where to find the output of "system out" in Intellij IDE?

In my case, output lines are just skipped, only beginning and end lines are existing. Please, anyone can help? I include the snapshot of my screen Snapshot of my screen

geisterfurz007
  • 5,292
  • 5
  • 33
  • 54
Hellika
  • 13
  • 2

1 Answers1

3

You are running the main method of a class called "Main" as you can see at the top of the console (little tab that reads "Main"). By default IntelliJ uses the class name that contains the main method as name of the so called run configuration. You can change that in the top right as well (little combobox with the same content as the tab -> Edit Configurations).

To now correctly run your "Hello" program that contains the output use one of the play buttons next to the editor. That should then add a new tab with the text "Hello" on it which should have your desired output in the console.

geisterfurz007
  • 5,292
  • 5
  • 33
  • 54
  • Thank you! It helped and now I can see output for my println. I opened top-right combo and changed there value in the field 'Main class' to 'com.company.Hello.' – Hellika Sep 28 '17 at 07:58