简体   繁体   中英

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. I have xcode but i'm not sure if all the java components are working properly.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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