package sfstat;

import java.io.File;
import java.io.FileNotFoundException;
import java.text.DecimalFormat;
import java.util.Scanner;
import java.util.Arrays;

public class Sfstat 
{
	public static void main(String[] args) 
	{
		Scanner dataFile;
		String line;
		String filename="sfdata.csv";
		Scores tempScore;
		StatGenerator stats = new StatGenerator();
		int SCORE_COUNT = 20;
		
		try 
		{
			dataFile = new Scanner(new File(filename));
			// loop to add scores 
			while (dataFile.hasNext()) 
			{
				String thisEntry;
				String entry, scores, judge;
				int[] thisScore;

				line = dataFile.nextLine();
				tempScore = new Scores(line, SCORE_COUNT);
				stats.addScore(tempScore); // Add all scores to a StatGenerator
				String[] splitLine = line.split(",");
				thisEntry = splitLine[0];
				thisScore = tempScore.getScores(); 
				Entry nEntry = new Entry(thisEntry, thisScore);

				entry = nEntry.getEntry();
				scores = Arrays.toString(nEntry.getScore());
				judge = tempScore.getJudge();
				
				System.out.println(" Entry: " + entry + " Judge: " + judge + " Scores: " + scores);
			}
		} 
		catch (FileNotFoundException e) 
		{
			System.out.println("Error Reading file");
		}
		
		DecimalFormat df = new DecimalFormat("#.0");
		System.out.println("\nAverage total: " + df.format(stats.getAverageTotal()));
		System.out.print("Mean scores: [");
		double averages[] = stats.getAverageScores();
		for(int ii=0;ii<averages.length-1;ii++) {
			System.out.print(df.format(averages[ii]) + ", ");
		}
		
		System.out.println(df.format(averages[averages.length-1]) + "]");

		int modes[] = stats.getModeScores();
		System.out.print("Modes: ");
		IntArrayStats.printArray(modes);

		double medians[] = stats.getMedianScores();
		System.out.print("\nMedians: [ ");
		for (int ii=0;ii<medians.length;ii++ ) {
			System.out.print(medians[ii] + " ");
		}
		System.out.println(" ]");
		
		int totals[] = stats.getTotalsArray();
		System.out.print("Totals: ");
		IntArrayStats.printArray(totals);
		
		System.out.print("\nClusters: ");
		IntArrayStats.getClusters(totals);
	}
	

}

@@ -923,16 +923,18 @@
 ();%0A%09%09%09%09
+//
 scores =
@@ -974,16 +974,18 @@
 ));%0A%09%09%09%09
+//
 judge = 
@@ -1015,16 +1015,18 @@
 %09%09%09%0A%09%09%09%09
+//
 System.o
@@ -1101,16 +1101,89 @@
 cores);%0A
+%09%09%09%09System.out.println(%22Entry: %22 + entry + %22 %22 + tempScore.toString());%0A%0A
 %09%09%09%7D%0A%09%09%7D

use override toString() method. Class: Scores.java