- import java.io.*;
- public class MyInput
- {
- public static String readString()
- {
- BufferedReader br
- = new BufferedReader(new InputStreamReader(System.in),1);
- String string = " ";
- try
- {
- string = br.raedline();
- }
- catch (IOException ex)
- {
- System.out.println(ex);
- }
- return string;
- }
- public static int readInt()
- {
- return Integer.parseInt(readString());
- }
- public static double reaDouble()
- {
- return Double.parseDouble(readString());
- }
- }
复制代码 |
|