title: I am having trouble getting my code to loop
body: <p>The code below should loop to produce:</p>
  
  <pre><code>It should print  1: Lather and Rinse
                   2: Lather and Rinse
                   Done.
  
  It produces:
                   1: Lather and Rinse
                      Done.
  </code></pre>
  
  <hr>
  
  <pre><code>   import java.util.Scanner;
  
  public class ShampooMethod {
  
     public static void printShampooInstructions(int numCycles) {
  
         if (numCycles &lt; 1) {
          System.out.println("Too few.");
          return;
      } 
      else if (numCycles &gt; 4) {
          System.out.println ("Too many.");
         return;
      } 
  
      else {
  
         for (int i = 1; i &lt;= numCycles; i++) {
         System.out.print(+ i);
         System.out.println(": Lather and rinse.");
         System.out.println("Done.");
         return;
      }
  
      }
  }  
  
     public static void main (String [] args) {
        printShampooInstructions(2);
  
        return;
     }
  }
  </code></pre>