The first one makes sense for a queue.
Also to keep the terminology right for a queue I would rename the methods
add -> push
and
remove -> pop
The first one makes sense for a queue.
Also to keep the terminology right for a queue I would rename the methods
add -> push
and
remove -> pop