title: Java Add Object to ArrayList error
body: <p>I'm new to coding java and would love some help. I'm trying to add an object of the class Fish to an arraylist call fishList</p>
  
  <p>in my main I have for example</p>
  
  <pre><code>    public static void main(String[] args) {
  
      Fish f1 = new Fish("Nemo");}
  </code></pre>
  
  <p>and in my class and constructor I have</p>
  
  <pre><code>public class Fish {
  protected static String name;
  protected static int number;
  protected static List&lt;Fish&gt; fistList = new ArrayList&lt;Fish&gt;();
  
  
  public Fish(String in){
  name = in;
  number = 15;
  fishList.add(name, number);
  }
  </code></pre>
  
  <p>but I get an error "no suitable method found for add(string, int)
  method List.add(int, Fish) is not applicable
  (actual argument String cannot be converted to int by method invocation conversion)
  method List.add(Fish) is not applicable
  (actual an formal argument list differ in length)</p>
  
  <p>How do I add objects to an arraylist properly?</p>