Coders Packet

Number to Word Converter in Java

By SK NOORALAM RAHAMAN

It is a program to convert any decimal or Integer numbers to Word. It only accepts a valid decimal or integer number.

In this program, you can print a number in word format. It should be a valid decimal or integer number. If you enter any invalid input (a-z, A-Z,@,#, etc) then it'll show "Invalid Input !!!". 

Requirements- 

                       1. Java Programming Language,

                       2. IntelliJ IDE.

Functionality-

                       (a) Exception Handeling : to accept valid input.

                       (b) getDigitCount () method : to count the digits of input number(Like- 101: 3).

                       (c) reverse () method : to print the number as it is (Like- 100: one zero zero ).

                       (d) numberToWords() method : to print the number to word format.

 

Download Complete Code

Comments

No comments yet