Array not printing properly [closed]

Use this loop: for (int i = prevScore.length; i > 0; i–){ System.out.println(prevScore[i-1] + ” ” + prevScoreName[i-1]); } I think it should solve your problem. Update based on your updated program. Move the following code above the start of the ‘do’ loop. int [] prevScore = new int[] { 0 }; String [] prevScoreName … Read more