Template:Java Queue methods