Prefer the Deque interface to legacy Java Stack