Here you can find the source of getIntegral(String number, BigInteger def)
public static BigInteger getIntegral(String number, BigInteger def)
//package com.java2s; //License from project: Open Source License import java.math.BigInteger; public class Main { /**/*from w w w. j a va 2 s . co m*/ * Parse the given string into a big integer if possible otherwise return * the specified default. */ public static BigInteger getIntegral(String number, BigInteger def) { try { return new BigInteger(number); } catch (Exception e) { return def; } } }