wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Calling a method into a tester Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Calling a method into a tester" Watch "Calling a method into a tester" New topic
Author

Calling a method into a tester

Zachary T. Anderson
Greenhorn

Joined: Mar 12, 2013
Posts: 16
Here is a problems I am having:

I have three classes: Student, Grade, and StudentTester. This code is in Student. It is calling the scores array from Student. I think this works.
What I would like to do is call the getLowestGrade method into my StudentTester, but keep getting the error:
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

When you call Student.getLowestGrade(), which Student object is that supposed to operate on? Presumably there could be many students, right?

Zachary T. Anderson
Greenhorn

Joined: Mar 12, 2013
Posts: 16
You are my hero today..... Thank you so much. I can see what I have been doing wrong....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calling a method into a tester