Hello this is my Question in queue using array...
.................................................. ...........................
the task is to create a queue application using array. Include the methods given below:
_depth(Object) -to print the elements that appear before the given element in queue
(including the same element)
For Example, the following is the queue.
5 2 56 12 4 21
if the given element is 12, the output should be:
5 2 56 12
IF the given element is 78, the output should be:
No element before 78
write the test class to these method.
.................................................. .................................................
Plzz replay as soon as possible and Thanx in advance