本帖最后由 likairoudou 于 2013-7-10 22:07 编辑
- <P>import java.util.Arrays;
- public class AsListTest {
- public static void main(String [] args){
- int [] a1= new int[]{1,2,3};
- Object [] a2 = new Object []{1,2,3};
- Object a3 = a1;
- Object [] a4 = new Object[]{a1,a2};
- System.out.println("a1:"+Arrays.asList(a1));
- System.out.println("a2:"+Arrays.asList(a2));
- System.out.println("a3:"+Arrays.asList(a3));
- System.out.println("a4:"+Arrays.asList(a4));
- }
- }</P>
复制代码
同是Object类。。可是a2可以为啥a3不可以呢
|