a short Java file that tests if a word is a Pallendrome