Java Arrays of Generics - Set[] and HashSet[] Explained
When you see Set<Integer>[] rowSets = new HashSet[9];, your brain might freeze. What's the array? What are the elements? Why HashSet without <Integer>? And wait - if arrays like int[] are type-safe, why do we even need generics? Let's untangle this confusing syntax and understand why Java works this way.
