2013年10月30日

摘要: Here's the Animal class:public class Animal{private Map friends =new HashMap();public void addFriend(String name,Animal animal){ friends.put(name,animal);}public Animal callFriend(String name){return friends.get(name);}}And here's some code snippet with lots of typecasting:Mouse jerry =newMo 阅读全文

posted @ 2013-10-30 17:14 chayu3 阅读(150) 评论(0) 推荐(0)