Skip to content
Advertisement

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.

Advertisement

Answer

Try to right click on the class file on the left panel then choose run option

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement