Thanks helloworld922 but that doesn't solve my problem. The instanceof operator is evaluated at runtime and my problem is a compiler warning. What I need is the correct cast syntax.
Type: Posts; User: mageorge
Thanks helloworld922 but that doesn't solve my problem. The instanceof operator is evaluated at runtime and my problem is a compiler warning. What I need is the correct cast syntax.
Here is a simplified case of my problem. In the real world the Object is a two-dimensional array with dissimilar object types so I can't just make it an array of ArrayList.
import...