Download jar file or use maven. psjava requires Java 1.6 (or above)
<dependency>
<groupId>org.psjava</groupId>
<artifactId>psjava</artifactId>
<version>0.1.19</version>
</dependency>
Set<Integer> set1 = SetFromVarargs.create(1, 2, 3, 4); Set<Integer> set2 = SetFromVarargs.create(3, 4, 5, 6); Set<Integer> intersection = IntersectionOfTwoSets.create(set1, set2); // must be (3,4)
Copyright 2014 psjava team. View on GitHub