Write a java program to check if the given number in words is palindrome , when the given input is in words | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Write a java program to check if the given number in words is palindrome , when the given input is in words

input: nine thousand nine hundred and ninety nine out: it's a palindrome input : two hundred And twenty one output: not palindrome

2nd Feb 2018, 5:51 PM
charan kumar
charan kumar - avatar
1 Answer
0
Have a look at this. It caps at 9999 though. Maybe others can help improve it :) https://code.sololearn.com/cTfh7irvVvV2/#java
2nd Feb 2018, 8:16 PM
Tibi Mose
Tibi Mose - avatar