intellect_dp
intellect_dp

Reputation: 169

Can not resolve "$" underscore-java(java port for underscore.js)

$.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

Upvotes: 1

Views: 173

Answers (1)

Thilo
Thilo

Reputation: 262824

You need to import com.github.underscore.$;

Upvotes: 1

Related Questions