title: Change ArrayList to three dots for an input
body: <p>I have a method that has as a signature, let's say <code>method(Object... args)</code>
  And one of my other methods creates an <code>ArrayList&lt;Object&gt; list</code>.</p>
  
  <p>What should I do so I can use <code>method(list)</code>?
  I have tried to do <code>method(Arrays.asList(list))</code> but it has not worked</p>