[Solved] How to format this string in java?


try {
   String formatted = String.valueOf((int)Double.parseDouble("12345.0"));
} catch (ParseException e) {
   // input is not a number
}

0

solved How to format this string in java?