push_back() and push_front() in Java

folone picture folone · Jan 22, 2010 · Viewed 17k times · Source

Is there any collection class in java, that implements push_back() and push_front() methods?

Answer

Jerome picture Jerome · Jan 22, 2010

The class java.util.LinkedList has addFirst/Last(), getFirst/last() and removeFirst/Last().