Java program prints too many times : import java.io.*;
import java.util.*;

public class Bowling7
{

   
    public static void main(String[] args) throws FileNotFoundException
    {


	Scanner fin = new Scanner(new FileReader("bowling.txt"));

       
	String Team, Member;
	int teamw, teamb, Score;
	String [] blue_members = new String[3];
	String [] white_members = new String[3];
	int [] blue_scores = new int[3]; 
	int [] white_scores = new int[3];

       
	int b = 0;
	int w = 0;    
      
	System.out.println(
            "This program reads the lines from the file bowling.txt to determine\n"
            + "the winner of a bowling match.  The winning team, members and scores\n"
			   + "are displayed on the monitor.\n");

        
        while (fin.hasNext())
           {
          
	       Member = fin.next();
	       Team = fin.next();
	       Score = fin.nextInt();
           
	       if (Team.equals("Blue"))
	      {

  	       
		   blue_members[b] = Member;
	       blue_scores[b] = Score;
	      
	       
		   b++;
	       }
           
	       else
	       {
		   white_members[w] = Member;
		   white_scores[w] = Score;
	      
		   w++;
	       }
	   }
    
	if(sumArray(blue_scores)>sumArray(white_scores))
	    {
		printArray("Blue", blue_members, blue_scores);
	    }
	else
	    {
		printArray("White", white_members, blue_scores);
	    }
	
	fin.close();

    }


    public static int sumArray(int[] Score)
    {
	int sum = 0;
	for (int i = 0; i < Score.length; i++)
	    sum += Score[i];
        return sum;
    }

    public static void printArray(String Team, String[] Member, int[] Score)
    {
      	for (int i = 0; i < Member.length; i++)
	    {
	System.out.printf("Winning team:"+Team+"\n"+Member[i]+":"+Score[i]);
	    {

Hello! My program keeps outputting:

This program reads the lines from the file bowling.txt to determine
the winner of a bowling match.  The winning team, members and scores
are displayed on the monitor.

Winning team: Blue
Fred:20
Winning team: Blue
Hilda: 24
Winning team: Blue
Pat: 51

I need it to output:

This program reads the lines from the file bowling.txt to determine
the winner of a bowling match.  The winning team, members and scores
are displayed on the monitor.

Winning Team: Blue
Player Score
Fred   20
Hilda  24
Pat    51


Any help at all would be greatly appreciated I am a newbie to java programming! 