Supposed I want to build a Queue using a LinkedList structure how would I go about doing this. I'm only allowed to use offer(), remove() or poll(), isEmpty() and size() methods, how do I implement a method to add items onto the queue?

Figured it out.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.