System.out in parameter
<p>I have a test file and according to it I need to build my program the test file
is below. However, I confused by s1.showDetails(System.out); I have never met
System.out in parameter can anyone help. What to do with it??? when I am trying to write showDetails() the compiler writes mistake. my student code is beneath this Thank you in advance!</p>

<pre><code>import java.util.*;
public class Q2 {
    public static void main(String [] args)
    {
        // Start on section A
        System.out.println("Question 2");
        System.out.println("Start on part A");
        Student s1 = new Student("John", "Smith", 42);
        s1.showDetails(System.out);
        Course cs = new Course("Computer science");
    }
}

public class Student {
    private String name;
    private String familyName;
    private int moduleMark;
    private int total;
    protected Student(String name, String familyName, int moduleMark)
    {
        this.name = name;
        this.familyName = familyName;
        this.moduleMark = moduleMark;
    }

    public String getName()
    {
        return name;
    }

    public String getFamilyName()
    {
        return familyName;
    }

    public int getModuleMark()
    {
        return moduleMark;
    }

    public String showDetails()
    {
        return (this.name + " " + this.familyName + " " + moduleMark + total);
        //print(name);
    }
}
</code></pre>
