I'm trying to check if a number is a palindrome. I have written the code to check if a string is a palindrome using recursion, but I'm having a hard time writing the one to check for numbers.
I'm passing just the number to the method, nothing else (eg, number of digits).
Anyone got any suggestions for me?