View Single Post
  #1 (permalink)  
Old 07-03-2008, 03:03 PM
javanewbie javanewbie is offline
Member
 
Join Date: Jun 2008
Location: Australia
Posts: 24
javanewbie is on a distinguished road
Convert Currency to Words in English
The program will accept a double-data type input from a user. Function of the program is to convert the number inputted to its equivalent words.

eg.

12345.67 = Twelve thousand and three hundred and forty five dollars and sixty seven cents

765.43 = seven hundred and sixty five dollars and forty three cents


Oh. By the way, using the following methods on the java.lang.String is much appreciated.

* charAt()
* length()
* trim()
* valueOf() - overload
* toCharArray()
* indexOf(String str)
* indexOf(String str, int fromIndex)


Does anybody have the idea here?
Reply With Quote
Sponsored Links