Methods in java (grade calculator)

后端 未结 6 1789
醉酒成梦
醉酒成梦 2021-01-29 06:49

We\'ve been learning about methods in java (using netbeans) in class and I\'m still a bit confused about using methods. One homework question basically asks to design a grade ca

6条回答
  •  离开以前
    2021-01-29 06:53

    You are calling your method scoreCalc() without passing the parameters you defined. When you are calling it, it was defined as having 3 parameters.

    scoreCalc(7, 10, 3.0, 8.0);
    

    Also, when creating a class, start it with upper case, GradeCalc

提交回复
热议问题