What is a `BitSet` in Java?
A `BitSet` is a class in Java that implements a growable array of bits, where each bit represents a boolean value, either true (1) or false (0).
Great! You've correctly explained the purpose and structure of a `BitSet`.
Can you explain how a `BitSet` is more efficient compared to using an array of booleans for the same task?