'How can I see the output console result in Netbeans?
I am a beginner studying Java using NetBeans. I created my first class and some simple code:
public class suju {
public static void main(String[] args){
System.out.print("hello word");
}
}
Why don't I see any result when I click run? I am supposed to see hello world but nothing like this is shown.
Only a message BUILD SUCCESSFUL (total time: 0 seconds)
Unfortunately, I can't post images yet to better present the problem I am facing.
Solution 1:[1]
Try to right click on the class file on the left panel then choose run option
Solution 2:[2]
Mine was doing the same.
I went to java.com and downloaded java again- it then prompted me to uninstall all out-if-date updates.
When I ran it again it was working.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Salman |
| Solution 2 | BecauseWes |
