If a number is equal to reverse of that number (say 12321) . java accepts palindrome or not. Give a reason if your answer is no. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

If a number is equal to reverse of that number (say 12321) . java accepts palindrome or not. Give a reason if your answer is no.

Question for concept of palindrome.

22nd Jun 2018, 4:53 PM
suman Kayal
suman Kayal - avatar
2 Answers
+ 2
Tobias Hallmans yeah you misunderstood pretty hard pal. Note: If a number is equal to reverse of number... In your example this is false. It's a predicate, not a statement of fact
22nd Jun 2018, 7:37 PM
Dan Walker
Dan Walker - avatar
+ 4
Whether or not a Java program accepts palindromes is up to you. You are the programmer, you decide what your programs do.
22nd Jun 2018, 5:21 PM
Hatsy Rei
Hatsy Rei - avatar