### Question:
Palindrome { public Deque<Character> wordToDeque(String word) { Deque<Character> worddeque = new LinkedListDeque<>(); for (int i = 0; i < word.length(); i++) { worddeque.addLast(word.charAt(i)); } return worddeque; }  Deque<Character> wordToDeque(String word); boolean isPalindrome(String word); boolean isPalindrome(String word, CharacterComparator cc);  }### Answer:
@Test public void testWordToDeque() { Deque d = palindrome.wordToDeque("persiflage"); String actual = ""; for (int i = 0; i < "persiflage".length(); i++) { actual += d.removeFirst(); } assertEquals("persiflage", actual); }