Java中的java.math.BigInteger
/** * */ package com.you.model; /** * @author YouHaidong * */ public class BigInteger { /** * @param args */ public static void main(String[] args) { java.math.BigInteger one = new java.math.BigInteger("1"); java.math.BigInteger two = new java.math.BigInteger("2"); java.math.BigInteger three = new java.math.BigInteger("3"); java.math.BigInteger sum = new java.math.BigInteger("0"); sum.add(one); sum.and(two); sum.and(three); System.out.println(sum); } }
运行结果:
0
Java中的java.math.BigInteger,布布扣,bubuko.com
时间: 2024-10-26 09:22:58