首页 > 其他 > 详细

getting data from the keybroad

时间:2014-10-04 15:50:16      阅读:128      评论:0      收藏:0      [点我收藏+]
public static String getString()
throws IOException{
              InputStreamReader isr =
               new InoutStreamReader(System,in);
               BufferedReader br = new BufferedReader(isr);
               String s = br.readLine();  
               return s;
}
public static char getChar() throws IOException{
               String s= getString();
               return s.charAt(0);
}
public static int getInt() throws IOException{
              String s = getString();
              return Integer.parseInt(s);
}

 

getting data from the keybroad

原文:http://www.cnblogs.com/cici-new/p/4006024.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!