判断一个整数是否是回文数
public boolean isPalindrome(int x) {
String xStr = String.valueOf(x);
StringBuilder sb = new StringBuilder(xStr);
if(xStr.equals(sb.reverse().toString())){
return true;
}else{
return false;
}
}