M
Mize-ze
Hello,
I am intrested in creating a generic class which leaves the use of
generics optional.
I want to use the generics when I want and leave it out when I want,
just like java.util.Map
How can I?
Example:
------------------------------------------------------------------------------------------------------
public class foo<T>{
private T value;
}
public static void main (String argv[]){
foo<Integer> = new foo<Integer>(); // That's ok
foo = new foo(); // Can't do this now!
how can I?
}
I am intrested in creating a generic class which leaves the use of
generics optional.
I want to use the generics when I want and leave it out when I want,
just like java.util.Map
How can I?
Example:
------------------------------------------------------------------------------------------------------
public class foo<T>{
private T value;
}
public static void main (String argv[]){
foo<Integer> = new foo<Integer>(); // That's ok
foo = new foo(); // Can't do this now!
how can I?
}