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>
MutableArray<Integer> array = MutableArrayFromVarargs.create(2, 1, 3); InsertionSort.getInstance().sort(array, new DefaultComparator<Integer>());
Copyright 2014 psjava team. View on GitHub