首页 > 其他 > 详细

Integer之常用方法

时间:2018-04-13 13:04:31      阅读:202      评论:0      收藏:0      [点我收藏+]

public static int parseInt(String s, int radix)
throws NumberFormatException
{}

// radix进制 s 换成 10进制数

 

public static Integer valueOf(String s, int radix) throws NumberFormatException {
return Integer.valueOf(parseInt(s,radix));
}

// radix进制 s 换成 radix进制数 再转成integer型

 

 

 public static String toString(int i, int radix) {}

// 10进制数 i 换成 radix进制数

Integer之常用方法

原文:https://www.cnblogs.com/guoziyi/p/8819417.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!