What happens if you call `nextElement()` when there are no more elements in an Enumeration?
Calling `nextElement()` without checking `hasMoreElements()` first will throw a `NoSuchElementException`.
Good job! Youâ€™ve got that right.
How would you handle such a situation gracefully in your code to avoid exceptions?