public class HelloWorld{ public static void main(String[] args) { String $hobby=“我爱慕课网”; String net=“www.imooc.com”; System.out.println($hobby+"\n"+net); } }//哪里不对啊????
\n用单引号试试
标点符号得用英文额