Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Formatting seven digit number into telephone number

800638Nov 27 2006 — edited Nov 28 2006
Is there a way to get a seven digit number and format it into (xxx) xxx-xxxx without writing the code myself? Does NumberFormat do this? I can't seem to figure out how.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 26 2006
Added on Nov 27 2006
19 comments
523 views