I'm creating a method which formats big numbers. I want a decimal separator.
For example: How can i change 14000000 into 14,000,000?
I'm using NumberFormat and or DecimalFormat.
I currently have this code: (I know its tiny)
String numberFormat(final int number) {
DecimalFormat formatter = new DecimalFormat("#.##");
return (formatter.format(number));
}


Sign In
Create Account


Back to top









