How do you transfer the elements from a string into an array?
807588Feb 7 2009 — edited Feb 7 2009A palindrome is a string that is spelled the same way forward and backward. Some examples of palindromes are "radar," "able was i ere i saw elba" and (if blanks are ignored) "a man a plan a canal panama." Write a method testPalindrome that returns true if the string stored in the array is a palindrome, and false otherwise. The function should ignore spaces and punctuation in the string.
I need to create a java program for this. Any help would be appreciated. But my main question is what is the syntax for transferring the elements of a string into an array?