title: Pig Translator with method
body: <pre><code>import java.util.Scanner;    
  
  public class Mission04Blossom {
      public static void main (String [] args) {
          Scanner in = new Scanner(System.in);
  
          String inputWord = "";
          String translatedWord = "";
  
          System.out.println("Welcome to the Pig Latin Translator *Oink* ");
  
          System.out.println("Please enter a word to be translated: ");
          inputWord = in.nextLine();
  
          translatedWord = pigTranslator(inputWord);
  
          System.out.println(translatedWord);
      }
  
      public static String pigTranslator(String userWord) {
  
          Scanner in = new Scanner(System.in);
          char wordFirstLetter = userWord.charAt(0);
  
          String newFirstLetter = String.valueOf(wordFirstLetter);
  
              if (newFirstLetter.equalsIgnoreCase("a") || newFirstLetter.equalsIgnoreCase("e") || newFirstLetter.equalsIgnoreCase("i") || newFirstLetter.equalsIgnoreCase("o") || newFirstLetter.equalsIgnoreCase("u")) {
                  userWord = userWord + "way";
              } else {
                  for (int i = 0; i &lt; userWord.length(); i++) {
                      if (userWord.charAt(i) == 'a' || userWord.charAt(i) == 'e' || userWord.charAt(i) == 'i' || userWord.charAt(i) == 'o' || userWord.charAt(i) == 'u') {
                          userWord = userWord.substring(i, userWord.length()) + userWord.substring(0, i) + "ay";
  
                      }
                  }
              }    
          return userWord;    
      }
  }
  </code></pre>
  
  <p>Alright, maybe someone can help me. I'm having no luck. I know this is probably super inefficient, but I'm still learning. This is a Pig Latin translator. I want to make it so the user will have to enter another word after the first one has been translated. I've tried so many combinations and such, but no avail. I KNOW this is just a simple logic error and once someone points it out to me, it will make so much sense and I'll feel stupid for not seeing it. </p>
  
  <p>Essentially I want something like<br>
  Please enter another word or press Q to quit.<br>
  if they press q it says thanks for playing, otherwise, it returns and prints</p>