Take the declaration for these arrays outside of readScores()
and put it at the top of your class so that you can invoke wins
with them.
int []p1= new int[10];
int []p2= new int[10];
Change the signature of wins
to this:
public void wins(int []player1Scores, int []player2Scores)
{
int player1Wins = 0;
int player2Wins = 0;
for (int i = 0; i < 10; i++)
(player1Scores > player2Scores) ? player1Wins++ : player2Wins++;
System.out.printf("Player 1 wins: %-10i Player 2 wins %-10i", player1Wins, player2Wins);
}//End wins
I won't be replying to any comments on this because I'm super busy tonight, but good luck Charles.