Results 1 to 2 of 2
  1. #1
    javanewbie is offline Member
    Join Date
    Jun 2008
    Rep Power

    Unhappy Java Program To Convert A Number In To Words With Decimals

    Sorry for being such a newbie.

    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.


    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? :confused:

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Eastern Florida
    Rep Power


    This assignment has been posted and solved before. You should be able to find it with a Search.

Similar Threads

  1. how to convert String number to int
    By gabriel in forum New To Java
    Replies: 5
    Last Post: 08-02-2009, 03:46 PM
  2. Replies: 0
    Last Post: 04-06-2008, 07:40 PM
  3. Replies: 0
    Last Post: 03-01-2008, 11:01 PM
  4. program help: Extracting words from a string
    By toad in forum New To Java
    Replies: 1
    Last Post: 11-04-2007, 07:39 PM
  5. Help with convert a double type number
    By trill in forum New To Java
    Replies: 1
    Last Post: 08-06-2007, 08:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts