title: ArrayList<Number> is not applicable for the arguments (int)
body: <p>This is my code which is shown as follows:</p>
  
  <pre><code>import java.util.*;
  import java.math.*;
  public class Exercise {
  
      public static void main(String[] args){
          ArrayList&lt;Number&gt; list = new ArrayList&lt;&gt;();
  
           list.add(59);    
          list.add(47);
          list.add(32);
          list.add(43);
          list.add(95);
          list.add(36);
    }
  
      public static void sort(ArrayList&lt;Number&gt; list){
          int iteration = list.size();
  
          while (iteration &gt;= 0){
              for (int i = 0; i &lt; list.size() - 1; i++){
                  for (int k = 1; k &lt; list.size(); k++){
  
                      if (list.get(i).getValue() &gt; list.get(k).getValue()){
                          Number temp = list.get(k);
                          list.set(k, list.get(i));
                          list.set(i, temp);
                      }
                  }
              }
  
          iteration --;
      }
   }
  
  }
  class Number{
      double d;
      Number(double d){
          this.d = d;
      }
  
      double getValue(){
          return d;
      }
  }
  </code></pre>
  
  <p>The error message is: </p>
  
  <p>The method add(int, Number) in the type ArrayList is not applicable for the arguments (int)</p>
  
  <p>The error corresponds from this part:</p>
  
  <pre><code> list.add(59);    
          list.add(47);
          list.add(32);
          list.add(43);
          list.add(95);
          list.add(36);  
  </code></pre>
  
  <p>Can anyone give me a help for fixing the error? Thank you!</p>