As I see the output console leads to insecurity

I am starting to learn Java using NetBeans. I created my first class and simple code

public class suju {
    public static void main(String[] args){
        System.out.print("hello word");
    }
}

Why can't I see any result when I click run? I should see hello world, but nothing of the kind is shown.
Message onlyBUILD SUCCESSFUL (total time: 0 seconds)

Unfortunately, I can’t post the images in order to better represent the problem I am facing.

+5
source share
2 answers

Try right-clicking the class file in the left pane, then selecting the launch option

+3
source

Mine did the same.

I went to java.com and downloaded java again-, after which I was asked to remove all obsolete updates.

, .

0

Source: https://habr.com/ru/post/1538263/


All Articles