Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java code for equivalent of number in words

 
Bondu Sam
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i have to print amount in words on the cheque for UK currency in my application. It would be of great help if anyone could give me readymade code for converting the amount in numbers to amount in words.
 
Junilu Lacar
Bartender
Posts: 7593
53
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, I could do that but you have to promise that your first successful cheque printed be made out to me for 50 pounds
Seriously, I think your best bet would be to do a web search on AmountToWords or NumberToWords.
BTW, "Sam", please update your publicly displayed name to conform with our Naming Policy. You can do that here. Thanks for your cooperation.
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looking at the miraculously simultaneous appearance with this thread, you'd guess it is homework time again, and this time 'round they don't even check if any of their fellow students has asked already
- Peter
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Better still, they can join the CattleDrive and do Java4a/b
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic