我的代码有什么问题?我是初学者,我一直收到这个找不到符号的错误

What is wrong with my code? I am a beginner and I keep getting this cannot find symbol error

我不确定从这里开始做什么。请让我知道我做错了什么以及如何解决。谢谢你。我看过很多帖子,但我所做的任何事情只会增加问题。再说一次,我现在只写了几天代码。

     public class TestRun {
        public static void main(String[] args) {
            char Button = '1';
                switch (Button) { 
                    case '1': System.out.prntln(" return ") ;
                        break;
                    case '2': System.out.prntln(" enter ") ;
                        break;
                    case '3': System.out.prntln(" welcome ") ;
                        break;
                    default: System.out.prntln(" hello ") ; 
        }
    }
}

/Users/levi_kline/Desktop/TestRun.java:5: error: cannot find symbol
                case '1': System.out.prntln(" return ") ;
                                    ^
  symbol:   method prntln(String)
  location: variable out of type PrintStream
/Users/levi_kline/Desktop/TestRun.java:7: error: cannot find symbol
                case '2': System.out.Prntln(" enter ") ;
                                    ^
  symbol:   method Prntln(String)
  location: variable out of type PrintStream
/Users/levi_kline/Desktop/TestRun.java:9: error: cannot find symbol
                case '3': System.out.prntln(" welcome ") ;
                                    ^
  symbol:   method prntln(String)
  location: variable out of type PrintStream
/Users/levi_kline/Desktop/TestRun.java:11: error: cannot find symbol
                default: System.out.prntln(" hello ") ; 
                                   ^
  symbol:   method prntln(String)
  location: variable out of type PrintStream
4 errors
[Finished in 1.1s]

您正在调用一个不存在的方法。它是 println 而不是 prntln

我强烈建议您使用 IDE 中的内置代码推荐或事先阅读 javadoc 以便了解正确的名称和参数。