简体   繁体   English

Mac上的Java。 Xcode或其他IDE

[英]Java on Mac. Xcode or other IDE

I have a question to ask: 我有一个问题要问:

I am using a mac and i need to learn how to code java on it. 我正在使用mac,我需要学习如何在其上编写java代码。 I have xcode but i'm not sure if all the java components are working properly. 我有xcode但我不确定所有java组件是否正常工作。

I tried to run a simple program but doesn't seem to work. 我试图运行一个简单的程序,但似乎没有工作。 when i tried compiling it on my terminal this is the message it gave me: 当我尝试在我的终端上编译它时,这是它给我的消息:

HelloWorld.java:4: error: cannot find symbol
            System.out.printIn("Hi");
                      ^
  symbol:   method printIn(String)
  location: variable out of type PrintStream
1 error

将方法名称从printIn更改为println

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM