This is the section that doesn't loop
import javax.swing.JOptionPane; // needed to use dialog boxs
public class PalindromeDetector
{// begin class
         
       public static void main(String[] args)
       {//begin main
          String userWord, continueLoop = " ";
          int numString;
           
          JOptionPane.showMessageDialog(null, "This program will ask the user for a string and check to see if it is a palindrome.");
                   
          do
          {//begin do while loop
             userWord = JOptionPane.showInputDialog("enter a string.");
             
             if(PalORNot(userWord))
                JOptionPane.showMessageDialog(null, userWord + " is a palinedrome.");
             else
                JOptionPane.showMessageDialog(null, userWord + " is not a palinedrome.");
                
             continueLoop = JOptionPane.showInputDialog("Would like to try again? enter yes to try again or quit to exit.");
                                                     
          } while (continueLoop == "Yes" || coninueLoop == "yes"); //end do while loop
 
     
    