答:

两处错误:
第一:List是接口,需要实现类ArrayList或者LinkedList,不能new List;
第二:int是基本数据类型,只能用Integer
正解:List<Integer> list = new ArrayList<Integer>()

转自百度知道https://zhidao.baidu.com/question/414705188.html 感谢作者

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2021-12-23
  • 2022-12-23
  • 2021-10-02
  • 2021-12-28
猜你喜欢
  • 2022-12-23
  • 2021-12-24
  • 2021-07-14
  • 2022-01-29
  • 2022-02-13
  • 2022-12-23
  • 2022-01-06
相关资源
相似解决方案