扫描器类的nextInt()方法 (Scanner Class nextInt() method)
Syntax:
句法:
public int nextInt();
public int nextInt(int rad);
-
nextInt() method is available in java.util package.
nextInt()方法在java.util包中可用。
-
nextInt() method is used to read the next token of the input as an int value at the implicit radix (rad) of this Scanner.
nextInt()方法用于读取输入的下一个标记,作为此Scanner的隐式基数(rad)处的int值。
-
nextInt(int rad) method is used to read the next token of the input as an int value at the explicit or given radix (rad) of this Scanner.
nextInt(int rad)方法用于读取输入的下一个标记作为此Scanner的显式或给定基数(rad)的int值
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)