The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
March 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

answer

Posted by erik on October 31, 2001 at 9:20 AM

look into the choiceformat class (inherited from numberformat)in java.text

It has a method to assign an array of values to another array of values such as:

limits = {1,2,3}
formats = {"one","two","three"}

just do some finagling to get commas to display as thousand and such.. good luck

> Can Anybody give an easy way to display A number like 1234
> as one thousand two hundred any thirty four






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us