public class Palindrome { static void printWord(char[] word) { for(int i=0; i