Condensing multiple System.out.prinln() into one : <p>I have </p>

<pre><code>        for( int x = 0; x &lt; rp.studentRecords.length; x++){
        System.out.println("Student name: " +rp.studentRecords[x].getName());
        System.out.println("Major: "+ rp.studentRecords[x].getClass().getName());
        System.out.println("Age: "+ rp.studentRecords[x].getName());
        System.out.println("Year " +rp.studentRecords[x].getYear());
        System.out.println("Credits Earned: "+ rp.studentRecords[x].getCredits());
        System.out.println("Remaining Credits: "+ rp.studentRecords[x].getRemainingCredits());
        System.out.println("-------");
    }
</code></pre>

<p>and I need to condense those System.out.println()s into a single one.</p>
