'Java codes not being executed (run) on my macbook's VS code

Right now, I haven't even started actually coding Java. I have just installed java on my Macbook and set up my Visual Studio Code. I wanted to sample a program out to see how it will be run there. However, it is not running at all no matter how much I click on the run button or press f5. I would appreciate the help :( Thank youA screenshot of the program page



Solution 1:[1]

I agree with Wimukthi Rajapaksha, you can try it first.Besides, we can also use the Ctrl+` keyboard shortcut or the View > Terminal menu command. If none of these steps work, I would like to know if the result will appear in the terminal after the code is run?

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 1y0una