public static boolean isPalindrome(int x) {
		if (x < 0)
			return false;
		int left = 0, right = 0, div = 1;
		// to get
		while (x / div >= 10)
			div *= 10;
		while (x != 0) {
			// note
			left = x / div;
			right = x % 10;
			if (left != right)
				return false;
			// note
			x = (x % div) / 10;
			// note
			div = div / 100;
		}
		return true;
	}