Code: Select all
public class TestClass   {
	public   <E extends CharSequence> Collection<E> getWordsStartingWith(
			Collection<E> input, char ch)Code: Select all
public class TestClass <E extends CharSequence> {
	public Collection<E> getWordsStartingWith(
			Collection<E> input, char ch)Collection<String> ac = getWordsStartingWith(a, 'a');
Error:
Could you explain the difference please?The method getWordsStartingWith(Collection<E>, char) in the type TestClass<E> is not applicable for the arguments (List<String>, char)