_____________________________________________________________________________________

import java.util.Scanner;

public class Main {

public static void main(String args[]) {

Scanner input = new Scanner(System.in);

System.out.print("please input a possible palindrome: ");

String check = input.next();

char[] word = check.toCharArray();

System.out.println(testPalindrome(word, 0, word.length-1));

}

public static Boolean testPalindrome(char[] check, int min, int max) {

if(min < max) {

if(check[min] != check[max]) {

return false;

}

min++;

max--;

testPalindrome(check, min, max);

}

return true;

}

}