class Solution {public boolean isPalindrome(int x) {if(x 0){value = value * 10 + num % 10;num = num / 10;}return value == x;}}
class Solution {public boolean isPalindrome(int x) {if(x 0){value = value * 10 + num % 10;num = num / 10;}return value == x;}}