The problem now is that you are trying to use T without declaring it. Or, if Collection<T extends CharSequence> was a declaration (which is not), then the returning type is missing.
Besides, you cannot make a new Collection, because Collection is an interface.
I think what you are trying would be this:
public static <E extends CharSequence, T extends CharSequence> Collection<T>
test(Collection<T> col){
return new ArrayList<T>();
}
[ November 30, 2007: Message edited by: Julio Eneriz ]