读书人

工具种(InputString)

发布时间: 2012-08-21 13:00:21 作者: rapoo

工具类(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;}}

?

读书人网 >编程

热点推荐