We're sorry but rendepage doesn't work properly without JavaScript enabled. Please enable it to continue.
HashMap中的key,可以是普通对象么?需要什么注意的地方?
千锋教育
Map的key和value都可以是任何类型。
但要注意的是,一定要重写它的equals和hashCode方法,否则容易发生内存泄漏。