How to sort numbers using a queue data structure that sort using Bubble sort method in java?
I tried using the same bubble sort method, when sorting the arraylist and linked list, but with a queue it does not allow me to get or set elements or even swap them, it identifies my queue as a class not an object.
How to sort numbers using a queue data structure that sort using Bubble sort method in java?
===

I tried using the same bubble sort method, when sorting the arraylist and linked list, but with a queue it does not allow me to get or set elements or even swap them, it identifies my queue as a class not an object.