static boolean polindromo(string frase) { for(int i=0,j=frase.length-1;i!=j || i!= j+1 ;i++,j--) if(frase.charAt(i)!=frase.charAt(j)) return false; return true; }