### Question:
Palindrome { public boolean isPalindromeUsingIntStream(String text) { String temp = text.replaceAll("\\s+", "").toLowerCase(); return IntStream.range(0, temp.length() / 2) .noneMatch(i -> temp.charAt(i) != temp.charAt(temp.length() - i - 1)); }  boolean isPalindrome(String text); boolean isPalindromeReverseTheString(String text); boolean isPalindromeUsingStringBuilder(String text); boolean isPalindromeUsingStringBuffer(String text); boolean isPalindromeRecursive(String text); boolean isPalindromeUsingIntStream(String text);  }### Answer:
@Test public void whenPalindromeStreams_wordShouldBePalindrome() { for (String word : words) assertTrue(palindrome.isPalindromeUsingIntStream(word)); }
@Test public void whenPalindromeStreams_sentenceShouldBePalindrome() { for (String sentence : sentences) assertTrue(palindrome.isPalindromeUsingIntStream(sentence)); }