$.each(asList(1, 2, 3), new Block<Integer>() {
public void apply(Integer item) {
System.out.println(item + ",");
}
});
it throws error that it cannot resolve "$" i am using underscore-java 1.6
You need to import com.github.underscore.$;