java类库详细讲解

源代码在线查看: isarray.html

软件大小: 5593 K
上传用户: add505
关键词: java
下载地址: 免注册下载 普通下载 VIP

相关代码

				
				
				
				Determining If an Object Is an Array
				(Java Developers Almanac Example)
				
				
				
				
				
				
								    BODY CODE  {font-family: Courier, Monospace;				           font-size: 11pt}				    TABLE, BODY				          {font-family: Verdana, Arial, Helvetica, sans-serif;				           font-size: 10pt}				    PRE   {font-family: Courier, Monospace;				           font-size: 10pt}				    H3    {font-family: Verdana, Arial, Helvetica, sans-serif;				           font-size: 11pt}				    A.eglink {text-decoration: none}				    A:hover.eglink {text-decoration: underline}				    -->
				
				
				
				
				
				The Java Developers Almanac 1.4
				
				        Order this book from Amazon.
				    
				
				
				
				
				
				
				
				
				
				
				
				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.
				
				
				
							

相关资源