Skip to main content

Java Queue of states

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
Husam82
Offline
Joined: 2012-10-19

I am implementing a code for solving water jugs problem. However, I want to use Java Queue of states. each state is an array such as { 1,2,3,4}. I dont know how to do that. I know how to define a Java Queue : Queue < > = new LinkedList<>();

Thanks,

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Husam82
Offline
Joined: 2012-10-19

I dont want to use an array to implement a Queue. I want to use Queue of int arrays.