i am feeling so noob right now asking this question, but i cannot figure it out what it's going on
import java.util.List;
public class ListResponse<T> {
private List<T> items;
private Paging paging;
public <T> ListResponse(List<T> items, Paging paging) {
this.items = **items**;
this.paging = paging;
}
}
I am getting a compiler error on that items parameter that i marked. The error is:
Type mismatch: cannot convert from java.util.List<T> to java.util.List<T>
Do you have any idea what is happening ? Thanks!
ListResponseis not a void method, shouldn't it havereturnvalue?