Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » 技术文章库  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Re:[转帖]面向对象的思维方法 [Re:lyc105]
kylin





发贴: 61
积分: 0
于 2006-01-20 15:42 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
lyc105 wrote:
/*我可以用ArrayList来表达用户列表,因为ArrayList也实现了Iterator,当然我也可以自己专门写一个类来存放用户列表,只要实现next()和hasNext()方法就行了。*/
这段话我还是有点不大懂,楼主或者哪位仁兄可以解释一下吗?先谢了


因为Iterator中的next()方法返回的类型是Object,要知道java中所有的类都是继承Object的,所以如果继承了Iterator类,可以根据实际情况让next()返回合适的包含用户列表内容的类,




话题树型展开
人气 标题 作者 字数 发贴时间
96771 [转帖]面向对象的思维方法 yekai 5566 2004-01-28 00:41
91659 Re:[转帖]面向对象的思维方法 网络天使 71 2004-02-27 14:44
86445 Re:[转帖]面向对象的思维方法 why 264 2005-09-19 23:17
87111 Re:[转帖]面向对象的思维方法 besthome 81 2005-09-08 10:11
86951 Re:[转帖]面向对象的思维方法 cgcai 80 2005-09-08 19:31
86891 Re:[转帖]面向对象的思维方法 推倒南墙 11 2005-09-08 22:38
86804 Re:[转帖]面向对象的思维方法 ltc603 14 2005-09-13 16:02
86572 Re:[转帖]面向对象的思维方法 alexanderj 44 2005-09-19 22:19
86579 Re:[转帖]面向对象的思维方法 vsjava 23 2005-09-25 16:45
86538 Re:[转帖]面向对象的思维方法 freebell 221 2005-09-28 16:43
86629 Re:[转帖]面向对象的思维方法 bukaoyan 62 2005-09-30 09:32
86094 Re:[转帖]面向对象的思维方法 hcwyh 9 2005-10-13 13:57
89619 Re:[转帖]面向对象的思维方法 zxhhero 16 2004-11-23 11:35
84885 Re:[转帖]面向对象的思维方法 lyc105 73 2005-12-18 19:31
86000 Re:[转帖]面向对象的思维方法 gfansenhua 48 2005-10-27 08:53
85561 Re:[转帖]面向对象的思维方法 yjwwrh 11 2005-11-13 19:33
85425 Re:[转帖]面向对象的思维方法 xhxasdf 92 2005-11-15 12:53
85364 Re:[转帖]面向对象的思维方法 ldh0421 5 2005-11-15 21:17
84917 Re:[转帖]面向对象的思维方法 lyc105 34 2005-12-18 19:23
85010 Re:[转帖]面向对象的思维方法 lyc105 130 2005-12-18 19:26
84128 Re:[转帖]面向对象的思维方法 kylin 278 2006-01-20 15:42
84760 Re:[转帖]面向对象的思维方法 jisuanji0608 25 2005-12-19 06:19
84754 Re:[转帖]面向对象的思维方法 lyc105 30 2005-12-21 11:22
86212 Re:[转帖]面向对象的思维方法 k99xjmlg026 0 2005-12-31 23:53
84659 Re:[转帖]面向对象的思维方法 langhua983 83 2006-01-08 14:40
91416 Re:[转帖]面向对象的思维方法 bluebaby 31 2005-02-14 01:02
84443 Re:[转帖]面向对象的思维方法 征服者 55 2006-01-09 15:31
84000 Re:[转帖]面向对象的思维方法 eqq2002 140 2006-02-07 15:48
83540 Re:[转帖]面向对象的思维方法 sunleef 44 2006-02-21 17:05
83103 Re:[转帖]面向对象的思维方法 wyf_521125 6 2006-03-12 04:42
82848 Re:[转帖]面向对象的思维方法 我所爱 28 2006-04-01 16:55
80790 Re:[转帖]面向对象的思维方法 仗剑游侠 149 2006-06-23 18:02
80773 Re:[转帖]面向对象的思维方法 dybjsun 16 2006-06-26 10:58
80461 Re:[转帖]面向对象的思维方法 重庆崽儿 12 2006-07-23 11:42
80030 Re:[转帖]面向对象的思维方法 随风之幻 271 2006-08-11 00:26
80057 Re:[转帖]面向对象的思维方法 flowerpig 14 2006-08-12 15:10
88915 Re:[转帖]面向对象的思维方法 tonny_yang 24 2005-04-04 22:30
79779 Re:[转帖]面向对象的思维方法 leibird 39 2006-08-22 08:37
78844 Re:[转帖]面向对象的思维方法 sunxiaoming 12 2006-09-26 23:56
78528 Re:[转帖]面向对象的思维方法 hushipeng 19 2006-10-10 15:31
78123 Re:[转帖]面向对象的思维方法 jamesjava 15 2006-11-06 00:00
77567 Re:[转帖]面向对象的思维方法 luolixin 20 2006-11-16 01:30
77559 Re:[转帖]面向对象的思维方法 Revolution 19 2006-11-16 09:22
77701 Re:[转帖]面向对象的思维方法 Revolution 19 2006-11-16 09:22
77340 Re:[转帖]面向对象的思维方法 ka43333 16 2006-11-23 22:10
77631 Re:[转帖]面向对象的思维方法 john31 39 2006-11-27 08:53
76625 Re:[转帖]面向对象的思维方法 yuejun923 16 2006-12-11 22:47
88633 Re:[转帖]面向对象的思维方法 gufei_in_java 10 2005-05-07 17:52
76780 Re:[转帖]面向对象的思维方法 yuejun923 16 2006-12-11 22:47
75176 Re:[转帖]面向对象的思维方法 nanshanwentao 14 2007-01-15 04:43
73952 Re:[转帖]面向对象的思维方法 cysky 33 2007-02-09 15:11
72354 Re:[转帖]面向对象的思维方法 sexyche 17 2007-03-13 07:33
74808 Re:[转帖]面向对象的思维方法 yangqw010 34 2007-03-26 03:40
62297 Re:[转帖]面向对象的思维方法 zfpei168 10 2008-02-24 06:14
62607 Re:[转帖]面向对象的思维方法 Happy漫步者 31 2008-03-08 14:03
64582 Re:[转帖]面向对象的思维方法 bzkfn 146 2008-03-19 11:09
88199 Re:[转帖]面向对象的思维方法 wzzhewang 4 2005-06-23 13:07
88095 Re:[转帖]面向对象的思维方法 j2eesir 78 2005-06-30 15:44
88008 Re:[转帖]面向对象的思维方法 wuyiqiong 126 2005-07-01 21:26
87384 Re:[转帖]面向对象的思维方法 hyhking 30 2005-08-18 09:34

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923