All pastes #640612 Raw Edit

Anonymous

public text v1 · immutable
#640612 ·published 2007-07-31 15:02 UTC
rendered paste body
    public static String readString() throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        final String s = br.readLine();
        br.close();
        return s;
    }
    
    public static int readInt() throws IOException, NumberFormatException {
        return Integer.parseInt(readString());
    }
    
    public static int readDouble() throws IOException, NumberFormatException {
        return Double.parseDouble(readString());
    }