I want to a program in java that prints the number in word's. Can any body help me. Exp like suppose user give 123 then program will prints "one two three only".
Class Test {
}
I want to a program in java that prints the number in word's. Can any body help me. Exp like suppose user give 123 then program will prints "one two three only".
Class Test {
}
basically you need to convert String to integer How to convert a String to an int in Java? then get over the numbers one by one How to get the separate digits of an int number? and create a switch on each digit and the switch add String of number to String
String final ="";
switch(num){
case'1': final = final+"one";break;
.
.
.
.
etc