input.nextInt(int radix)解釋

input.nextInt(int radix)解釋 首先附上API的說明 中文版的看不懂,英文版的……先不找了吧 一開始以爲是對輸入值進行約束,畢竟有random.nextInt(int a)的先例 後來在使用中發現並不是這樣 這裏的radix是進制的參數, 現附上測試用代碼 Scanner input=new Scanner(System.in); //進制轉換 int a=input
相關文章
相關標籤/搜索