zoukankan      html  css  js  c++  java
  • BigInteger

    import java.math.BigInteger;
    /*
     * BigInteger(String val)
              将 BigInteger 的十进制字符串表示形式转换为 BigInteger。
        成员方法:
              BigInteger add(BigInteger val)
              返回其值为 (this + val) 的 BigInteger      
              BigInteger subtract(BigInteger val)
              返回其值为 (this - val) 的 BigInteger。
              BigInteger multiply(BigInteger val)
              返回其值为 (this * val) 的 BigInteger。 
              BigInteger divide(BigInteger val)
              返回其值为 (this / val) 的 BigInteger。
     */
    public class BigIntegerDemo {
     public static void main(String[] args) {
      BigInteger b =new BigInteger("100");
      BigInteger b2 =new BigInteger("100");
      BigInteger b3= b.add(b2);
      System.out.println(b3);
      
     }
    }
  • 相关阅读:
    腾讯安全上海游戏部门笔试题
    2017
    2016
    2015
    2014
    2013
    2012
    2011
    2010
    2009
  • 原文地址:https://www.cnblogs.com/rong123/p/9887395.html
Copyright © 2011-2022 走看看