BigInteger bi = new BigInteger("123");
int i = bi.intValue(); long l = bi.longValue(); System.out.println(i); System.out.println(l);
本文提供了一个简单的示例,展示了如何将BigInteger对象转换为int和long类型,并通过System.out.println输出结果。
BigInteger bi = new BigInteger("123");
int i = bi.intValue(); long l = bi.longValue(); System.out.println(i); System.out.println(l);转载于:https://www.cnblogs.com/sharpest/p/8491844.html

被折叠的 条评论
为什么被折叠?