Is there somthing wrong with this?

public void team1() throws Exception {

String buyt1;

player tempPlayer[] = new player[20];

int line=0;

int total=0;

boolean xloop;

String select=new String();

FileReader filename = new FileReader("Boston.txt");

BufferedReader In = new BufferedReader(filename);

System.out.println("Boston Celtics");

System.out.println("Overall Rating: 86 ");

System.out.println("Cost: $275 million");

System.out.println("Would you like to purchase this team?");

System.out.print("1. Yes 2. No ");

try {

buyt1 = keyboard.readLine();

if (buyt1.equals("1")) {

myteam.setName("Boston Celtics");

myteam.setTeamIndex(1);

for (int i=0;total<=13;i++) {

switch (line%9) {

case 0: total++;

tempPlayer[total-1]=new player();

tempPlayer[total-1].setName(In.readLine());

//System.out.println(tempPlayer[total-1].getName());

break;

case 1: tempPlayer[total-1].setPosition(In.readLine()); break;

case 2: tempPlayer[total-1].setHeight(In.readLine()); break;

case 3: tempPlayer[total-1].setWeight(In.readLine()); break;

case 4: tempPlayer[total-1].setGraduated_Year(In.readLine()); break;

case 5: tempPlayer[total-1].setYears_in_the_NBA(In.readLine()); break;

case 6: tempPlayer[total-1].setOverall_rating(In.readLine()); break;

case 7: tempPlayer[total-1].setOffence(In.readLine()); break;

case 8: tempPlayer[total-1].setDefence(In.readLine()); break;

}

line++;

}

xloop=true;

while (xloop) {

for (int i=0;i<13;i++) {

System.out.print(i);

System.out.print(" ");

System.out.println(tempPlayer.getName());

}

select=keyboard.readLine();

xloop=myteam.addPlayer(tempPlayer[Integer.parseInt(select)]);

}

}

}

catch (Exception e) {}

}

Is there anything wrong with this code?

[2009 byte] By [Sanjana] at [2007-9-28 8:16:34]
# 1
You tell us, is there?
FoxyLadya at 2007-7-9 19:29:35 > top of Java-index,Other Topics,Java Game Development...
# 2
Well when this code is executed my team is not set and my players don't show up. Im not sure what to do to fix this
Sanjana at 2007-7-9 19:29:35 > top of Java-index,Other Topics,Java Game Development...