Here you can find the source of isIterable(Object obj)
public static boolean isIterable(Object obj)
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { public static boolean isIterable(Object obj) { return obj.getClass().isArray() || (obj instanceof Class<?> && ((Class<?>) obj).isArray()) || obj instanceof Iterable || obj instanceof Enumeration; }/*from ww w . j av a2s . c o m*/ }