JAVA学习笔记 1.从命令行获取输入 Scanner sc=new Scanner(System.in); System.out.println("输入字符:"); String m=sc.next();