copy this code file NumberInWords.java . how to use: public static void main(String[] args) { String word = NumberInWords.convertNumberToWords(192001001); System.out.println(word); } source: https://www.rgagnon.com/javadetails/java-0426.html