|
|
|
|
public class ClassName { ... ... } |
public class ClassName< Type1 , Type2 , ... > { ... ... } |
The type parameters is used inside the class Classname to define variables.
|
How to express this in Java:
public class UserProgram { public static void main(String[] args) { Map<String,Integer> M = new ....; // Define a Map variable // to gain access to // the Map functionalities M.put( ... ); M.get( ... ); } } |
|
|
What I want to show you now is how to organize (= write) the Java class using the interfaces above.
|
|