How can I add to List<? extends Number> data structures?

前端 未结 6 965
暗喜
暗喜 2020-11-22 02:19

I have a List which is declared like this :

 List foo3 = new ArrayList();

I tried to add 3 to foo3.

6条回答
提交回复
热议问题