Here you can find the source of parseBigDecimal(String inString, BigDecimal inDefault)
public static BigDecimal parseBigDecimal(String inString, BigDecimal inDefault)
//package com.java2s; //License from project: Open Source License import java.math.BigDecimal; public class Main { public static BigDecimal parseBigDecimal(String inString) { return parseBigDecimal(inString, null); }/*w w w. j a va2s . co m*/ public static BigDecimal parseBigDecimal(String inString, BigDecimal inDefault) { try { return new BigDecimal(inString); } catch (final Exception e) { return inDefault; } } }