title: I'm having two set Collection values.I want unmatch values should display?
body: <p>I'm having two set Collection values.I want unmatch values should display?</p>
  
  <pre><code>Set  sqlrno = new HashSet();
  Set  accessrno = new HashSet();
  </code></pre>
  
  <p>values are like</p>
  
  <p>sqlrno    :1, 2, 3</p>
  
  <p>accessrno : 1, 2</p>
  
  <p>Expected output : 3</p>
  
  <p>I tried below code but doesn't work?</p>
  
  <pre><code>         for (Object collaccess : accessrno) {
               for (Object collsql : sqlrno) {
                   if (collsql != collaccess) {
                        System.out.println(collsql);
                   }
               }
           }
  </code></pre>