title: How to compare two ArrayList<List<String>>
body: <p>I want to compare these two <code>ArrayList</code>:</p>
  
  <pre><code>public static ArrayList&lt;List&lt;String&gt;&gt; arrayList1 = new ArrayList&lt;List&lt;String&gt;&gt;();
  public static ArrayList&lt;List&lt;String&gt;&gt; arrayList2 = new ArrayList&lt;List&lt;String&gt;&gt;();
  </code></pre>
  
  <p>If they have the same elements it will return true, otherwise false.</p>