I have following interface:
public interface IMyList<T> {
<S> S[] toArray(S[] a);
}
I have compilation error in Eclipse for this interface implementation.
public class MyList implements IMyList{
@Override
public <S> S[] toArray(S[] a) {
return null;
}
}
Please, could you explain me this behaviour?
Thanks.