java几个对象转化方法
2016-11-20 本文已影响0人
Roeji
1.int intValue()
以 int 类型返回该 Integer 的值。
2.static int parseInt(String s)
将字符串参数作为有符号的十进制整数进行解析。
3.static Integer valueOf(int i)
返回一个表示指定的 int 值的 Integer 实例。
1.int intValue()
以 int 类型返回该 Integer 的值。
2.static int parseInt(String s)
将字符串参数作为有符号的十进制整数进行解析。
3.static Integer valueOf(int i)
返回一个表示指定的 int 值的 Integer 实例。