工具类(InputString)

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
 
public class InputString {
 
    public static String getString() throws IOException{
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        String s = br.readLine();
        return s;
    }
}

 

posted @ 2013-04-19 23:53  William_Xiao  阅读(260)  评论(0编辑  收藏  举报