这个压缩包里的都是超级经典的java例子
源代码在线查看: isarray.htm
Determining If an Object Is an Array (Java Developers Almanac Example)
The Java Developers Almanac 1.4
Order this book from Amazon.
google_ad_client = "pub-6001183370374757";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_channel = "4777242811";
google_ad_type = "text_image";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "6666CC";
google_color_url = "6666CC";
google_color_text = "000000";
//-->
Home
>
List of Packages
>
java.lang.reflect
[17 examples]
>
Arrays
[6 examples]
e120. Determining If an Object Is an Array
boolean b = object.getClass().isArray();
if (b) {
// object is an array
}
Related Examples
e121.
Getting the Length and Dimensions of an Array Object
e122.
Getting the Component Type of an Array Object
e123.
Creating an Array
e124.
Expanding an Array
e125.
Getting and Setting the Value of an Element in an Array Object
See also:
Constructors
Fields
Methods
Modifiers
© 2002 Addison-Wesley.