Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Hisham Younis   on Feb 22 In Java Category.

  
Question Answered By: Mamie Wallace   on Feb 22

In student.main(), you try to use sendstudent(int, double, double) but
have not defined a c'tor that can accept these parameters.

In student.meth1(), you reference local variable avg, but provide no
declaration for it.

That's all Eclipse shows wrong. The javac compiler catches them as well.

Upon fixing these simple errors, I get the output

ID number  3835 has received an average  gradeof 4.0
ID number 3835 has received an average grade of 4.0
ID number 9999 has received an average grade of 3.5

On another note, I do not mean to talk down to you or anything, but
these are simple errors  to fix. Are you trying to debug at all, or
simply using us as your QA team?

Share: