- 博客(5)
- 收藏
- 关注
原创 wildcards
Array types (Animal[] animals) are checked at runtime, but collection type (ArrayList) checks happen only when you compile(runtime就不再查了). 可以用wildcards的形式, public void test (ArrayList list) pu
2014-07-17 09:44:45
389
原创 print与toString
JAVA中 使用System.out.print()时,自动调用了Object的 toString()method,
2014-07-16 16:01:55
397
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人