title: Calling a method that displays the output pattern only
body: <p>I'm having a hard time with my second method, The method declaration is:
      <code>public static void displayOutput(int loopCount)</code>
  The method is called from the <code>main()</code> and is passed the valid input value which determines repetition. The method displays the output pattern only and returns nothing. Every 3rd line displays a space and 3 asterisks</p>
  
  <p>I know I'm not calling each method right in the <code>main()</code> and I know that <code>displayOutput(int loopCout)</code> is wrong.  </p>
  
  <p>Could someone explain this to me or use an example that would help write the program? </p>
  
  <pre><code>public static void main(String[] args) {
     int repeat;
     Scanner goGet = new Scanner(System.in); 
     repeat = getValidValue(goGet); //Uncompilable source code -Erroneous sym type
  
     displayOutput(repeat);
  }
  
  public static int getValidValue() {
      int input;
  
      do {
          Scanner getInfo = new Scanner(System.in);
          System.out.print("Enter an integer Greater than zero: --&gt; ");
          input = getInfo.nextInt();
  
      } while (input &lt;= 0);
  
      return input;
  }
  
  public static int displayOutput(int loopCount) {
      int i; 
      for (i = 0; i &lt; loopCount; i++) {
          System.out.print("The semester is ending soon. ");
          System.out.print("The semester is ending soon. ");
          System.out.print("The semester is ending soon.*** ");            
      }
  
      return loopCount;
  }
  </code></pre>