Code: Select all
//I will discuss wildcards in the next section
List<?> iList; //using unbounded wildcard
List<? extends Integer> iList; //using upper bounded wildcard
List<? super Integer> iList;//using upper bounded wildcard
Thanks!
Moderator: admin
Code: Select all
//I will discuss wildcards in the next section
List<?> iList; //using unbounded wildcard
List<? extends Integer> iList; //using upper bounded wildcard
List<? super Integer> iList;//using upper bounded wildcard
Users browsing this forum: No registered users and 10 guests