public String tran(int num,int index) {
StringBuilder number = new StringBuilder();
while(num>0){
number.append(num%index);
num=num/index;
}
return number.reverse().toString();
}
java实现进制转换
最新推荐文章于 2023-11-09 16:02:39 发布