1.10进制转换16进制
String hex= Integer.toHexString(numb);
2.10进制转换n进制
String hex = Integer.toString(10,n);
3.n进制转换10进制
方法1.标签:转换,进制,int,hex,num,Integer,JAVA From: https://www.cnblogs.com/Timefliesblogs/p/17642527.html
BigInteger hex=new BigInteger("字符", n); int num = hex.intValue(); System.out.println(num);
方法2.
int hex = Integer.parseInt("字符",n);