An ArrayList can be shuffled using the Knuth shuffle method by calling Collections.shuffle() method and passing the ArrayList object to it. What is the best way to do a Knuth shuffle on a stack data structure?
Correct Answer: By using Collections.shuffle() and passing the Stack object to it, similar to ArrayList Knuth shuffle.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Java MCQ Questions