Here you can find the source of isBigDecimal(String str)
public static boolean isBigDecimal(String str)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; public class Main { public static boolean isBigDecimal(String str) { try {//from w ww . j a v a 2 s . co m new BigDecimal(str); return true; } catch (Exception e) { return false; } } }