title: ((Java) Return statement after if/else if/else loop?
body: <p>Stuck on a particular part of my assignment: having a return statement outside of a loop.  If you look at the code, you can kind of guesstimate what I'm trying to do here.  The rest of the program works, but this method keeps giving me the same error statement: "missing return statement".</p>
  
  <pre><code>private static String HighOrLow (int[] numbers)
   {
       for (int i = 0; i &lt; numbers.length; i++)
       {
  
          if (numbers[i] &gt; average) {
               return (numbers[i] + "is above the average");
          }
          else if (numbers[i] &lt; average) {
               return (numbers[i] + " is below the average");
          }
          else   {
               return (numbers[i] + " is equal to the average");
          }
  
      }
  </code></pre>
  
  <p>I realize something's supposed to go outside the forloop, but not sure how to go about it.  Any helpful help is appreciated.</p>
  
  <p>4/5/16:  First of all, thanks for all the help!  I got it set and ready to go..except every number, high or low, is pulling into above average. Paul Guiheen has the right idea and I appreciate it, but I have to print separate line for each array integer.</p>