Please help me convert this program to use ArrayList to inputwords to check if they are palindrome??
it will continue to run until the user enters a blank line?also, it will print out how many palindromes were found.
import java.util.ArrayList;
import java.util.Scanner;
public class ProjectProblem2 {
public static void main(String[] args) {
ArrayList <String> nameList = newArrayList<String>();
String [] testString = {“Able was I ere I saw Elba”,
“A Man, A Plan, A Canal, Panama”,
“Desserts I stressed”,
“Kayak” };
for (int i =0; i < testString.length; i++)
{
System.out.print(“””+ testString[i] +”””);
if (isPalindrome(stripString(testString[i])))
{
System.out.println(“is a palaindrome”);
}
else
{
System.out.println(“is not a palindrome”);
}
}
}
public static String stripString (String strip)
{
strip = strip.toUpperCase();
String stripped = “”;
for (int i = 0; i
PayPal Gateway not configured
PayPal Gateway not configured