title: Converting int to toString() method
body: <p>Hello I am new to coding and am working on designing my own class, which computes the average of 'n' numbers which will be provided in the driver program as an array. Currently I continue to get an error "incompatible types, cannot convert int to java.lang.String" in my toString method at the end and am not sure how to get solve it. any help is appreciated. </p>
  
  <pre><code>//this code computes the average 
  public int adverage(int...array)
      {
         int adverage = 0;
         if (array.length &gt; 0)
         {
             int sum = 0;
             for(int num : array)
                  sum = sum + num; //add numbers in array 
             adverage = (int)sum / array.length; //divide numbers in     array by the array lenth
  
          }
  
         return adverage;
      }
  
  
   //this code is the toString return method
   public String toString()
      {
  
          return getMinimun() + getMaximun() + adverage();
  
      }
  </code></pre>
  
  <p>It is merely a requirement of the problem I am working on the the final result be displayed at a string. Thankyou!</p>