java - Upper bounded wildcard is causing compilation error -


public class testing {     public static void main(string[] args) {         list<? extends integer> list = new arraylist<>();         list.add(new integer(21));     }  } 

what compilation error in line#4?


Comments

Popular posts from this blog

java - Checkbox item adds to spinner -

php - mySQL problems with this code? -

C# MVC AngularJS -