import java.io.*;
public class Keyboard {
static BufferedReader inputStream=new BufferedReader(new InputStreamReader(System.in));
public static int getInteger() {
try {
return (Integer.valueOf(inputStream.readLine().trim()).intValue());
}catch(Exception e) {
e.printStackTrace();
return 0;
}
}
public static String getString() {
try {
return (inputStream.readLine());
}catch(IOException e) {
return "0";
}
}
}
Keyboard类源码
最新推荐文章于 2022-01-04 21:34:18 发布