posts - 7, comments - 17, trackbacks - 0, articles - 0
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

日历

<2006年9月>
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

公告


相册

不是精典,不收!

做个链接

搜索

  •  

最新评论

2006年9月21日

posted @ 2010-11-22 05:53 Ardor Leo 阅读(2291) | 评论 (0)编辑 收藏

     摘要: 4.1. Generic Types
Generic types and methods are the defining new feature of Java 5.0. A generic type is defined using one or more type variables and has one or more methods that use a type variable as a placeholder for an argument or return type. For example, the type java.util.List is a generic type: a list that holds elements of some type represented by the placeholder E. This type has a method named add(), declared to take an argument of type E, and a method named get(),  阅读全文

posted @ 2006-09-21 05:05 Ardor Leo 阅读(1897) | 评论 (2)编辑 收藏