palindrome program using for loop in java user defined aea anand shaw