首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

工具种(InputString)

2012-08-21 
工具类(InputString)import java.io.BufferedReaderimport java.io.IOExceptionimport java.io.InputStr

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

?

热点排行