Java 1.6 and later.
Include the following in your pom.xml
for Maven:
<dependencies>
<dependency>
<groupId>com.github.javadev</groupId>
<artifactId>underscore</artifactId>
<version>1.16</version>
</dependency>
...
</dependencies>
Underscore-java is a java port of Underscore.js.
In addition to porting Underscore's functionality, Underscore-java includes matching unit tests.
For docs, license, tests, and downloads, see: http://javadev.github.io/underscore-java
Thanks to Jeremy Ashkenas and all contributors to Underscore.js.