title: Use ArrayList or List in method parameter list
body: <p>Hi I am wondering if it is better to use list or arrayList as a method parameter?</p>
  
  <p>for example -</p>
  
  <pre><code>public static void calculate(List&lt;T&gt; list) {}
  </code></pre>
  
  <p>or</p>
  
  <pre><code>public static void calculate(ArrayList&lt;T&gt; list) {}
  </code></pre>
  
  <p>I was thinking that it was better to use List because it gives you more options to use a linked list or whatever... but if I am wrong could you tell me why ArrayList is better or why List is better?</p>
  
  <p>Thanks</p>