标签:read next buffere sys NPU ring tst adl 通过
方法 1:通过 Scanner
Scanner input = new Scanner(System.in);
String s = input.nextLine();
input.close();
方法 2:通过 BufferedReader
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
String s = input.readLine();
标签:read next buffere sys NPU ring tst adl 通过
原文地址:https://www.cnblogs.com/treasury/p/13019023.html