//package com.nowjava;
/** 来自 时 代 J a v a 公 众 号 - N o w J a v a . c o m**/
public class Main {
public static void main(String[] argv) throws Exception {
Object o = "nowjava.com";
System.out.println(isArray(o));
}
public static boolean isArray(Object o) {
if (o instanceof char[]) {// char
return true;
} else if (o instanceof boolean[]) {// boolean
return true;
} else if (o instanceof byte[]) {// byte
return true;
} else if (o instanceof short[]) {// short/** 来自 时 代 J a v a 公 众 号 - nowjava.com**/
return true;
} else if (o instanceof int[]) {// int
return true;
} else if (o instanceof long[]) {// long
return true;
} else if (o instanceof float[]) {// float
return true;
/**代码未完, 请加载全部代码(NowJava.com).**/