previous
|
start
|
next
Type Variables
Supplied type replaces type variable in class interface
Example:
add
in
ArrayList<BankAccount>
has type variable
E
replaced with
BankAccount
:
public void add(
BankAccount
element)
Contrast with
LinkedList.add
:
public void add(Object element)
previous
|
start
|
next