**Edit**
New question about generics in post 8.
I'm just learning generics but I have a good grasp on the idea, just not all of the syntax yet. In one class I have a public generic method and in my program I call that method and there is a problem with how I am trying to tell it my Comparator should be of type String.
CODE
//In the public class pClass
public static <E> void methodN(E[] e, Comparator<? super E> c){
..do stuff;
}
//calling it from the program(in a different class)
//A is a String array that is already filled
pClass.methodN(A,Comparator<String>);
I am using eclipse and the error says 'Syntax error on token ">", Expression expected after this token'. Anyone know my mistake? Thanks for any help.
This post has been edited by UnderTheBridge: 5 Oct, 2007 - 03:26 PM