posted 16 years ago
If I have a method that takes an Object and the object can be an array (say Integer[][]), how would I find out that the base class is Integer? Doing a getClass() returns the Integer[][] class not Integer class. So I can't just use ".equals()" to see or even instanceof. how do I find the array's base class?
For example: