title: check for duplicate lists Java 8
body: <p>Given n lists, I want to find out if any two lists have exactly same elements. Below is code in Java 7.</p>
  
  <pre><code>public static &lt;T&gt; boolean hasduplicateList(List&lt;List&lt;T&gt;&gt; lists) {
      for (List&lt;T&gt; outerList : lists) {
          int count = 0;
          Set&lt;T&gt; outerSet = new HashSet&lt;&gt;(outerList);
          for (List&lt;T&gt; innerList : lists) {
              Set&lt;T&gt; innerSet = new HashSet&lt;&gt;(innerList);
              if (outerSet.equals(innerSet)) {
                  count++;
              }
              if (count == 2) {
                  return true;
              }
          }
      }
      return false;
  }
  </code></pre>
  
  <p>Is there a better way to achieve same specially using Java8?</p>