- //小练习
- import java.util.*;
- class TestDemo
- {
- public static void main(String[] args)
- {
- int[] x = {2,5,6,7};
- System.out.println(x);
- Map<String,String> map = new HashMap<String, String>();
- map.put("01","zhangsan");
- System.out.println(map);
- }
- }
复制代码
求解,为什么打印数组是地址值,而打印map不是地址值?
|
|