如下代码:
- package test;
- public class Length {
- public static void main(String[] args){
- int [] bool = {1,2,3};
- int [] boool = {4,5,6,7};
- System.out.println(bool);
- System.out.println(bool.length);
- System.out.println(boool);
- System.out.println(boool.length);
- //System.out.println)
- }
- }
复制代码
输出结果如下:
[I@1db9742
3
[I@106d69c
4
疑惑点:[I@ 是什么意思,引用不应该是8个16进制数么?程序有错误也请指正,多谢~ |
|