+ 2

How convert a String "6" to String "six" in java

19th Aug 2020, 4:43 AM
Lizbeth Robles
Lizbeth Robles - avatar
3 Answers
+ 4
For that you have to code and try by yourself. You can store all the string numbers in an array, and for outputting the value you can give the index as the number(which is to be changed in string)
19th Aug 2020, 4:52 AM
Aman Kumar
Aman Kumar - avatar
+ 5
Lizbeth Robles String num = "6"; String word = "six"; if (num == "6") { System.out.print(word); } }
19th Aug 2020, 5:17 AM
BroFar
BroFar - avatar
+ 2
Try to use switch case
19th Aug 2020, 4:52 AM
Ali Abd Alftah Fadul Mohammed
Ali Abd Alftah Fadul Mohammed - avatar