java.lang
Class Integer
static Integer | valueOf(int i)
Returns an
Integer instance representing the specified
int value.
|
static Integer | valueOf(String s)
Returns an
Integer object holding the value of the specified
String.
|
static Integer | valueOf(String s, int radix)
Returns an
Integer object holding the value extracted from the specified
String when parsed with the radix given by the second argument.
|
Java Integer 类详解
本文详细介绍了 Java 中 Integer 类的三个静态方法:valueOf(int i),用于返回指定 int 值对应的 Integer 实例;valueOf(String s) 和 valueOf(String s, int radix),分别用于将字符串转换为 Integer 对象,后者允许指定进制。
2631

被折叠的 条评论
为什么被折叠?



