回文-数字是否是回文
https://blog.csdn.net/weixin_43590392/article/details/109698015
class Solution { public boolean isPalindrome(int x) { String str = String.valueOf(x); char[] c = str.toCharArray(); int len=c.length; for(int i=0;i<len/2;i++){ if(c[i]!=c[len-i-1]){ return false; } } return true; } }