posted 15 years ago
All,
For the following code, I get the error "Cannot find symbol" for add(int) method.
Here, my reference is type-safe.
But, if I change to the following, there is a successful compilation but with warnings.
Here, my object is type-safe and I am able to add and retrieve both the indices' values.
Due to type erasure, both these sets of code will finally be the same, right? Then, why is this error occuring?
I am using Java6 compiler.