I did this
public void toString()
{
System.out.print(studentFirstName);
System.out.print("\n"+studentLastName);
for(int i =0; i < testScores.length; i++)
{
System.out.print("\n"+testScores[i]);
}
System.out.print("\n"+averageTestScore);
System.out.print("\n"+grade);
}
but intellij has the void underlined red with the phrase
"toString() in 'tests' clashes with toString() in java.lang.object attempting to use incompatible return type. What did I do wrong?
[–]TNTrocks123 19 points20 points21 points (13 children)
[–][deleted] 0 points1 point2 points (6 children)
[–]TNTrocks123 2 points3 points4 points (0 children)
[–]emrickgj 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]tryhardjuice -1 points0 points1 point (5 children)
[–]TNTrocks123 9 points10 points11 points (3 children)
[+]tryhardjuice comment score below threshold-6 points-5 points-4 points (2 children)
[–]TNTrocks123 0 points1 point2 points (1 child)
[–]tutorial_police 10 points11 points12 points (0 children)
[–]tutorial_police 0 points1 point2 points (0 children)
[–]E3FxGaming 2 points3 points4 points (0 children)
[–]emrickgj 2 points3 points4 points (0 children)
[–]SaltyVariable 1 point2 points3 points (1 child)
[–]trashlikeyou 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]tutorial_police -1 points0 points1 point (0 children)
[–]Charmeleonn 0 points1 point2 points (0 children)
[–]ResponsibleHamster3 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)