Java輸入流學(xué)習(xí)(讀取整數(shù)方法)
摘要: Java輸入流學(xué)習(xí)(讀取整數(shù)方法)關(guān)鍵代碼:
BufferedReader is = new BufferedReader(new InputStreamReader(System.in));
String strIn = is.readLine();
int i = Integer.parseInt(strIn); 閱讀全文
posted @ 2008-09-18 13:42 冰島 閱讀(2212) | 評論 (0) | 編輯 收藏