Why are you using arrays anyway?
This is a low-level programming structure.
Use List or Set instead (e.g. org.apache.commons.collections.list.LazyList ) if you don't want to worry about initialization.
Or at least
Arrays.asList(new Stack[52]) to wrap an array in a list.
I could not reproduce anywany .. jour error: :( perchaps it, because another warning / error level was set.
source share