Java tutorial
//package com.java2s; public class Main { public static boolean isArray(final Object obj) { return obj != null && obj.getClass().isArray(); } }