posts - 4,comments - 1,trackbacks - 0
          import java.io.*; import java.util.*; public class ReadIn { public static void main(String args[]) { int i=0; char c; InputStreamReader is=new InputStreamReader(System.in); BufferedReader br=new BufferedReader(is); StringTokenizer st; try { System.out.print("int:"); System.out.flush(); String myline=br.readLine(); st=new StringTokenizer(myline); i=Integer.parseInt(st.nextToken()); System.out.println("got:"+i); } catch (IOException ioe) { System.out.println("IO error:"+ioe); } } };
          posted on 2006-03-25 19:16 我的JAVA世界 閱讀(1042) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 弋阳县| 日照市| 隆昌县| 建湖县| 嵊泗县| 田林县| 任丘市| 岢岚县| 老河口市| 彩票| 磴口县| 鸡东县| 福安市| 廉江市| 石阡县| 兴仁县| 阳西县| 成都市| 璧山县| 大邑县| 南江县| 建宁县| 林西县| 嘉峪关市| 扎鲁特旗| 迭部县| 阳信县| 安达市| 广河县| 龙山县| 永嘉县| 荣昌县| 望都县| 濮阳市| 七台河市| 新乡市| 中山市| 元江| 石楼县| 宁海县| 古田县|