Java examples for Reflection:Array
Determining If an Object Is an Array
public class Main { public static void main(String[] argv) { int[] object = new int[8]; boolean b = object.getClass().isArray(); if (b) {//from w w w.j av a 2 s .com // object is an array } } }