title: How to add Duplicate elements in Set?
body: <p>I want to add duplicate element in set, what i do? what are the method that i have to override.</p>
  
  <pre><code>    public final class AddDupliacateElementInSet
      {
           public static void main(String[] args)
           {
               Set&lt;Integer&gt; set =new HashSet&lt;&gt;();
               set.add(1);
               set.add(1);
               set.add(3);
               set.add(4);
               set.add(5);
               set.add(6);
               set.forEach(s-&gt;System.out.println(s));  
           }
      }
  </code></pre>