java 输入挂
2020-12-13 14:29
标签:edr ble buffer adl input stream 字符串 span more 替换Scanner java 输入挂 标签:edr ble buffer adl input stream 字符串 span more 原文地址:https://www.cnblogs.com/zuferj115/p/11562850.html static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
static StringTokenizer tokenizer = new StringTokenizer("");
static String nextLine() throws IOException {// 读取下一行字符串
return reader.readLine();
}
static String next() throws IOException {// 读取下一个字符串
while (!tokenizer.hasMoreTokens()) {
tokenizer = new StringTokenizer(reader.readLine());
}
return tokenizer.nextToken();
}
static int nextInt() throws IOException {// 读取下一个int型数值
return Integer.parseInt(next());
}
static long nextLong() throws IOException {// 读取下一个long型数值
return Long.parseLong(next());
}
static double nextDouble() throws IOException {// 读取下一个double型数值
return Double.parseDouble(next());
}
上一篇:后缀数组 LCP--模板题
下一篇:Spring 事务回滚