Here you can find the source of add(BigDecimal num1, BigDecimal num2)
public static BigDecimal add(BigDecimal num1, BigDecimal num2)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; public class Main { public static BigDecimal add(BigDecimal num1, BigDecimal num2) { if (null == num1) { num1 = BigDecimal.ZERO; }// ww w. j a v a 2 s .co m if (null == num2) { num2 = BigDecimal.ZERO; } return num1.add(num2); } }