摘要: .NET Framework 类库 IList.Item 属性 通过类实现时,获取或设置在指定的索引处的元素。 [C#] 在 C# 中,该属性为 IList 类的索引器。 [Visual Basic] Default Property Item( _ ByVal index As... 阅读全文
posted @ 2007-05-24 17:01 四两 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 在Java中,常见的遍历集合方式如下: Iterator iter = list.iterator();while (iter.hasNext()) { Object item = iter.next();} 也可以使用for for (Iterator iter = list.iterator(); iter.hasNext()) { Object item = iter.next(... 阅读全文
posted @ 2007-05-24 14:21 四两 阅读(1595) 评论(0) 推荐(0) 编辑
加油,哥们,现在开始!