How can I see in Java if an Object is an array without using reflection? And how can I iterate through all items without using reflection?
I use Google GWT so I am n
One can access each element of an array separately using the following code:
Object o=...; if ( o.getClass().isArray() ) { for(int i=0; i
Notice that it is unnecessary to know what kind of underlying array it is, as this will work for any array.