2
votes
5answers
708 views

Bounded blocking queue

Can someone please review this code for me. I have not implemented all the methods for simplicity. Original code: /** * Implements a blocking bounded queue from a given non-blocking unbounded queue ...
5
votes
2answers
338 views

In Java, how to operate the sublists efficiently?

In my Java program, I need to operate on the sublists a of ArrayList or LinkedList often, like removing a sublist, comparing two sublists. For ArrayList or LinkedList, I didn't find any good APIs to ...