Course Solutions Uncategorized (Solved) : Please Help Convert Program Use Arraylist Input Words Check Palindrome Continue Run User E Q36308566 . . . .

(Solved) : Please Help Convert Program Use Arraylist Input Words Check Palindrome Continue Run User E Q36308566 . . . .

 

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

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : Important Show Hand Process Answers Parts 1 4 Plots Required Parts 1 Thru 4 Matlab Script Q26401855 . . . .(Solved) : Important Show Hand Process Answers Parts 1 4 Plots Required Parts 1 Thru 4 Matlab Script Q26401855 . . . .

<p><img alt="" src="http://d2vlcm61l7u1fs.cloudfront.net/media%2Ffc0%2Ffc0a0bd0-8bc0-4951-9e52-a299b843bc7f%2FphpF5JnOa.png" style="height:388px;width:1024px;" aria-describedby="d3f"/><strong>*IMPORTANT:</strong><strong>Show hand process in the answers to parts 1 and 4, theplots required by parts 1 thru 4, and the MATLABscript.</strong></p><p><strong><img alt="" src="http://d2vlcm61l7u1fs.cloudfront.net/media%2F497%2F49777fb2-a393-48c4-9b85-3be6247027de%2FphptH30FU.png" style="height:313px;width:1024px;"/></strong></p>2) Given the