Hi,
Appreciate any help on this issue.
If I use the class DecimalFormat to format long number, how can I convert it back to integer?
DecimalFormat longFormat = new DecimalFormat("#,###"); long testLong=11000; String strLong=longFormat.format(testLong); System.out.println("NUM : " + strLong); //Assume that at this point I don't have //testLong, I have only the strLong value... long newLong=Long.parseLong(strLong) * 2; //java.lang.NumberFormatException: For input string: "11,000