Java 获得main方法输入 2016-11-17 本文已影响21人 sphsyv Scanner sc = new Scanner(System.in); String s = sc.nextLine();