public static boolean isPalindrome2(int x) { //当为负数或为以0结尾的数,反转肯定不等 if(x < 0 || (x%10 == 0 && x != 0)){ return false; } int revert ...