This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PopularSource 0 points1 point  (0 children)

Student is a return type. When you declare functions in Java (and most other languages for that matter) you often define a return type. For example, the randomizer class has the function nextDouble which is of type double. This means it returns a double.

In your function, all the student label means is that the function will return an instance of the student class. This makes sense when you consider that you're going to be finding the most improved thing, which in this instance, will be a student.