Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: Checking value contained in java collection List

gaurav1207:

I have a List of long Arrays with the name Arraycells:


List Arraycells = new ArrayList() ;
Arraycells.add(new long[]{1L, 0L});
Arraycells.add(new long[]{1L, 1L});
Arraycells.add(new long[]{1L, 2L});

I want to see if a long array object is contained in this list or not:


for (long r = 0L; r for (long c = 0L; c if (Arraycells.contains(new long[]{r, c})) { // problem is with this statement
// do something
}
}
}

How can I check the Arraycells?



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: Checking value contained in java collection List

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×