Java tutorial
//package com.java2s; public class Main { public static String unformatNum(CharSequence num) { String res = ""; try { res = num.toString().replaceAll(",", ""); } catch (Exception e) { } return res; } }