Method for separating a number with commas

Hai Friends,i need a help in creating a method for separating a number with commas for 1000 unitsfor ex: if number is 1200 it has to be 1,20024329 = 24,3292345678 = 2,345,678kindly help me in this matter
[245 byte] By [leo_michaela] at [2007-11-27 1:16:49]
# 1
Cross post answered in http://forum.java.sun.com/thread.jspa?threadID=5161405&messageID=9615046#9615046
sabre150a at 2007-7-11 23:52:26 > top of Java-index,Java Essentials,New To Java...