in java question:
Write a method called moveNthFront that takes as a parameter a positive integer n and Queue. The function moves the nth element of the queue to the front while keeping the other items in their placeses. q (46 8 947 5 12) n-4 after call to the function queue becomes q-(9468 47 5 12) Show transcribed image text Write a method called moveNthFront that takes as a parameter a positive integer n and
OR
OR