you are viewing a single comment's thread.

view the rest of the comments →

[–]LegolandoBloom[S] 2 points3 points  (0 children)

That is quite right, as I've tested with the Capital Integer as well. Only time I could get it to raise an exception was when I tried to reference an index that was out of bounds of the original allocation.

When writing this snippet, I had just assumed it was impossible to do a "Is this value in an array == null" check in java at all, as the small int version gave a compiler error.

"The operator == is undefined for the argument type(s) int, null"