BigDecimal
表示数值的字符串
http://www.nowcoder.com/questionTerminal/6f8c901d091949a5837e24bb82a731f2
用BigDecimal它不香吗:
import java.math.BigDecimal; public class Solution { public boolean isNumeric(char[] str) { String num=new String(str); try{ BigDecimal bd=new BigDecimal(num); }catch(Exception e){ return false; } return true; } }