Mega Code Archive
Search
.Net
ASP .Net
ASP .Net Tutorial
C#
C# Book
C# by API
C# Tutorial
VB.Net
VB.Net by API
VB.Net Tutorial
Visual C++ .Net
VisualBasic Script
Java
Java
Java Book
Java by API
Java Tutorial
Script
Flash ActionScript
Flex
JavaScript DHTML
JavaScript Reference
JavaScript Tutorial
Database
MSSQL
MSSQL Tutorial
MySQL
MySQL Tutorial
Oracle PLSQL
Oracle PLSQL Tutorial
PostgreSQL
Languages
Android
C
C Tutorial
C++
C++ Tutorial
Delphi
Perl
PHP
Python
Python Tutorial
Ruby
Silverlight
Office
MSOfficeExcel 2007 Tutorial
MSOfficePowerPoint 2007 Tutorial
MSOfficeWord 2007 Tutorial
Data
XML
XML Tutorial
Java Tutorial
Generics 52 codes
Home
Java Tutorial
Generics
1 A Generic Class with Two Type Parameters
2 A generic first-in, first-out bounded collection of objects
3 A Generic Subclass
4 A generic type can accept more than one type variables
5 A list declared to hold objects of a type T can also hold objects that extend from T
6 A subclass can add its own type parameters, if needed
7 Arrays
8 Bounded Types
9 Bounded Wildcards
10 Casting within a generic class hierarchy
11 Constraints on a Wildcard
12 Create a typesafe copy of a raw list
13 Create a typesafe copy of a raw map
14 Create a typesafe filter of an unchecked enumeration
15 Create a typesafe filter of an unchecked iterator
16 Create a typesafe view over an underlying raw map
17 Create a typesafe view over an underlying raw set
18 Creating a Generic Method
19 Defining a Generic Class Type
20 Generic Class Hierarchies
21 Generic class Stack
22 Generic Constructors
23 Generic Interfaces
24 Generic method maximum returns the largest of three objects
25 Generic methods
26 Generic to list
27 Generics and Collections
28 Generics Work Only with Objects
29 Introducing Generic Types
30 Life without Generics
31 Multiple Type Parameters
32 Nested generic type
33 Overriding Methods in a Generic Class
34 Raw type test for a generic Stack
35 Raw Types and Legacy Code
36 Run-Time Type Comparisons Within a Generic Hierarchy
37 The generalized syntax for a generic interface
38 The Run-Time Types of Generic Type Instances
39 Type Parameter Bounds
40 Upperlower bound for a wildcard
41 Use generic method to test generic Stack
42 Using Bounded Wildcards in Methods
43 Using Generic Comparable interface
44 Using generic methods to print array of different types
45 Using Primitive Type Wrapper Class Types as Arguments
46 Using the wildcard
47 Using Wildcard Arguments
48 Utilities for generic ArrayList
49 What Are Generics A Simple Generics Example
50 Wildcard test program
51 Working with generic List
52 Your own tree with generic user object