Consider using ArrayDeque when minimum supported Java version permits it
Brought to you by:
mos20
When the minimum supported Java version becomes 8, instances of java.util.Stack and java.util.ArrayList, where used as a queue, should be considered for replacement with java.util.ArrayDeque, for improved performance, especially as limitaitons are approached.
Anonymous