Write a function in java to calculate all the possible palindromes in a string.
Anonymous
Simple calculate all the possible substrings, and write a helper method to check if each substring is a palindrome.
Check out your Company Bowl for anonymous work chats.