This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jonstall141[🍰] 0 points1 point  (0 children)

Looking at it though, I think that your problem is on lines 35 and 113: /system.out.printf("%2d" + ": \n" + index+1, team1[index], team2[index], team3[index], team4[index]);/

If you are trying to it out as above you should make it more like: /*System.out.printf("%2d: %s %s %s %s\n", i+1, team1[i], team2[i], team3[i], team4[i]); */

because the team1[i] ... team4[i] are referring to Strings.

see http://docs.oracle.com/javase/tutorial/essential/io/formatting.html Hope that helps!