title: How to convert number to words in java
body: <p>We currently have a crude mechanism to convert numbers to words (e.g. using a few static arrays) and based on the size of the number translating that into an english text. But we are running into issues for numbers which are huge.</p>
  
  <pre><code>10183 = Ten thousand one hundred eighty three
  90 = Ninety
  5888 = Five thousand eight hundred eighty eight
  </code></pre>
  
  <p>Is there an easy to use function in any of the math libraries which I can use for this purpose?</p>