Can someone help me fix this code. I’ve included the errors I’mseeing
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
int[] jersey = new int[5];
int[] rating = new int[5];
int count = 0;
char choice = ‘o’;
// taking input of 5 members
for(count = 0; count<5; count++)
{
System.out.printf(“Enter player %d’s jersey number:n”,count+1);
jersey[count] = keyboard.nextInt();
System.out.printf(“Enter player %d’s rating:n”, count+1);
rating[count] = keyboard.nextInt();
}
while(true)
{
if(choice == ‘u’)
{
System.out.print(“nEnter a jersey number: “);
int jnum = keyboard.nextInt();
// finding the index of that jersey
int ind = 0;
for(ind = 0; ind < count && jersey[ind] != jnum;ind++);
// taking rating
if(jersey[ind] == jnum)
{
System.out.print(“Enter a new rating: “);
rating[ind] = keyboard.nextInt();
}
}
else if(choice == ‘a’)
{
// taking