BigInteger & BigDicemal

          import java.math.BigInteger;

          public class HelloWorld {

              
          public static void main(String[] args) {
                  BigInteger bigI1 
          = BigInteger.ONE;
                  BigInteger bigI2 
          = BigInteger.ONE;
                  
                  
          // The operator + is undefined for the argument type(s) java.math.BigInteger
                  
          // BigInteger bigI3 = bigI1 + bigI2;
                  BigInteger bigI4 = bigI1.add(bigI2);

                  System.out.println(bigI1 
          + " " + bigI2 + " " + bigI4);
              }

          }

          // Expect Result: 1 1 2

          posted on 2012-11-02 09:14 鹽城小土包 閱讀(190) 評論(0)  編輯  收藏 所屬分類: J2EE

          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          導(dǎo)航

          統(tǒng)計

          常用鏈接

          留言簿

          隨筆檔案(14)

          文章分類(18)

          文章檔案(18)

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 乐平市| 阳曲县| 江西省| 贡嘎县| 当雄县| 霍邱县| 卢龙县| 古交市| 海宁市| 南投市| 桐城市| 阳春市| 关岭| 昂仁县| 民丰县| 大兴区| 长子县| 辽阳市| 福鼎市| 和林格尔县| 揭西县| 贺州市| 宁乡县| 佛山市| 湘阴县| 涟水县| 高雄市| 贵定县| 襄樊市| 大同市| 湄潭县| 丽水市| 治多县| 巧家县| 明光市| 大理市| 齐齐哈尔市| 拉萨市| 博湖县| 灌南县| 绍兴市|