Why does my first Hello World Java program give an error on Visual Studio when using System.out to print to screen? [duplicate]
问题 This question already has an answer here : How to disable SonarLint for test projects (1 answer) Closed 5 months ago . I'm using Visual Studio Code on my Mac laptop and I'm after writing my first program in Java but when I run the code I get an error message about System.out. public class Hello { public static void main(final String[] args) { System.out.println("Hello, World!"); } } "Replace this use of System.out or System.err by a logger." How can I fix this error? 回答1: This is a sonarlint