C
chivesthecat
I have a query regarding a static method. Is it possible to return
multiple objects from the method?
e.g. method getStudentResults below has got 2 Lists and a boolean. How
do I pass them back to the calling method?
public static List getStudentResults(int studentId)
{
List scores = getScores(studentId); // need to pass back
List subjects = getSubjects(studentId); // need to pass back
boolean isQualified = true; // need to pass back
return scores;
}
multiple objects from the method?
e.g. method getStudentResults below has got 2 Lists and a boolean. How
do I pass them back to the calling method?
public static List getStudentResults(int studentId)
{
List scores = getScores(studentId); // need to pass back
List subjects = getSubjects(studentId); // need to pass back
boolean isQualified = true; // need to pass back
return scores;
}