title: Create ArrayList from array
body: <p>Given an array of type <code>Element[]</code>:</p>
  <pre><code>Element[] array = {new Element(1), new Element(2), new Element(3)};
  </code></pre>
  <p>How do I convert this array into an object of type <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/ArrayList.html" rel="noreferrer"><code>ArrayList&lt;Element&gt;</code></a>?</p>
  <pre><code>ArrayList&lt;Element&gt; arrayList = ???;
  </code></pre>