I'm no doubt missing something really obvious here but I can't figure it out. Any help would be appreciated. The mistake is coming from here:
package B00166353_Grades;
public class Student{
String name,banner;
public Student(String name,String banner){
this.name=name;
this.banner=banner;
}
public String toString(){
String productDetails=new String();
productDetails+=String.format("%-20s%10.2s%10s",this.name,this.banner);
return productDetails;
}
}
toString()
. Only two parameters are passed... – Photoflood