Skip to content

Instantly share code, notes, and snippets.

public static boolean esPalindromo(String X){
boolean palindromo;
String Y = "";
String X2 = X.trim();
for (int i =X2.length()-1;i>=0;i--)
Y = Y + X2.charAt(i);
if(Y.equalsIgnoreCase(X2))