
你有没有尝试过:
BigInteger bigInt = new BigInteger(hexString, 16);
例如:
import java.math.*;public class Test { public static void main(String[] args) { String hexStr = "1b0ee1e3"; BigInteger bigInt = new BigInteger(hexStr, 16); System.out.println(bigInt); // Prints 453960163 }}欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)