Here you can find the source of readLine(String s)
public static String readLine(String s)
//package com.java2s; //License from project: Apache License import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static String readLine(String s) { System.out.print(s);/*from www . j a v a 2s .co m*/ String returnval = null; try { BufferedReader bufRead = new BufferedReader(new InputStreamReader(System.in)); returnval = bufRead.readLine(); } catch (IOException e) { throw new RuntimeException(e); } return returnval; } }