一、Error:(12, 28) java: 无法将类 com.gsj.designpattern.iterator.IteratorPatternDemo.Student中的构造器 Student应用到给定类型;

  需要: 没有参数
  找到: java.lang.String
  原因: 实际参数列表和形式参数列表长度不同

原因:student里面没有定义构造器,所以报错。

 

相关文章:

  • 2022-12-23
  • 2021-10-06
  • 2021-09-16
  • 2021-09-25
  • 2021-12-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-10
  • 2021-11-06
  • 2022-12-23
  • 2021-06-22
  • 2021-08-09
  • 2021-09-30
  • 2021-12-27
相关资源
相似解决方案