判断是否为回文字符串
public boolean judge (String str) {
// write code here
int i=0,j=str.length()-1;
while (i<j){
if(str.charAt(i++)!=str.charAt(j--)) return false;
}
return true;
}