title: How do I enter parameters for an ArrayList in BlueJ?
body: <p>In BlueJ, if I write a method that takes an array as a parameter, then when I want to test that method with a method call I have to enter the elements with curly braces, so:</p>
  
  <p>{1,2,3}</p>
  
  <p>How do I do a method call for an <code>ArrayList</code>?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>import java.util.*;
  
  public class Test2{
  
      public static int[] toArray(ArrayList&lt;Integer&gt;a){
          int len = a.size();
          int []b = new int[len];
          for(int i = 0; i&lt;len; i++){
              b[i] = a.get(i);
          }
       return b;    
  
      }
  }
  </code></pre>
  
  <p>Now I want to test it in BlueJ, what should I type in the following dialog box?</p>
  
  <p><img src="https://i.stack.imgur.com/lRisp.png" alt="enter image description here"></p>