@Test public void testBreakIntPalindromesRecursive() { PalindromeHelper helper = new PalindromeHelper(); char[] text = "aaaaaaaaaaaaaaaaabcdeeeeee".toCharArray(); PalindromeGroup group = helper.breakIntoPalindromes(text, 0, text.length); assertEquals("aaaaaaaaaaaaaaaaa", group.getStrings().get(0)); assertEquals("b", group.getStrings().get(1)); assertEquals("c", group.getStrings().get(2)); assertEquals("d", group.getStrings().get(3)); assertEquals("eeeeee", group.getStrings().get(4)); }
public PalindromeGroup breakIntoPalindromes(char[] text, int start, int end) { return dynamicBreakIntoPalindromes(text, start, end); }
PalindromeHelper { public PalindromeGroup breakIntoPalindromes(char[] text, int start, int end) { return dynamicBreakIntoPalindromes(text, start, end); } }
PalindromeHelper { public PalindromeGroup breakIntoPalindromes(char[] text, int start, int end) { return dynamicBreakIntoPalindromes(text, start, end); }  }
PalindromeHelper { public PalindromeGroup breakIntoPalindromes(char[] text, int start, int end) { return dynamicBreakIntoPalindromes(text, start, end); }  static boolean isPalindrome(char[] text, int start, int end); PalindromeGroup breakIntoPalindromes(char[] text, int start, int end); }
PalindromeHelper { public PalindromeGroup breakIntoPalindromes(char[] text, int start, int end) { return dynamicBreakIntoPalindromes(text, start, end); }  static boolean isPalindrome(char[] text, int start, int end); PalindromeGroup breakIntoPalindromes(char[] text, int start, int end);  }