Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What method would you use to sort a list?
Think about the action you would take to organize items.
What does Collections.reverse() do?
Consider what happens when you flip something over.
What is the main purpose of the Collections Utility Class?
Think about simplifying tasks in programming.
The method Collections.shuffle() randomly changes the order of elements in a list.
Consider how you might randomly select different outfits.
Create a list of 10 random numbers, sort them, and then remove the maximum value from that list. What code would achieve this?
Think about sorting and then finding the largest number.
In a programming tournament, you have a list of players' scores. Write a code snippet to shuffle the scores and then print the maximum score from the shuffled list.
Focus first on randomizing before finding the highest score.
5 more questions in this section. Enroll free to practise them all.
Enroll free