Here you can find the source of parseNum(String numStr)
public static Number parseNum(String numStr) throws ParseException
//package com.java2s; import java.text.*; public class Main { public static Number parseNum(String numStr) throws ParseException { return NumberFormat.getInstance().parse(numStr); }/*from w w w.ja v a2 s .c om*/ }