Format number
HI, Please helpHow can I format following number exmpl 34540 to have displayed34,540 this is not decimal number its just 34thousand 5 hundred etcThxAYMF
Or with String.format() or the PrintStream/PrintWriter/etc printf() methods using the format string "%,d". According to the documentation for Formatter ( http://java.sun.com/javase/6/docs/api/java/util/Formatter.html) the comma "will include locale-specific grouping separators".