What is the primary use case of the `Stack` class in Java?
The `Stack` class is used to store elements in a sorted order, allowing quick retrieval of the smallest element.
Thatâ€™s incorrect. `Stack` does not store elements in sorted order; it follows a LIFO principle.
Which class would you use if you want to store elements in sorted order in Java?