fix my code: import java.util.ArrayList;
import java.util.Scanner;

public class FantasyFootball {
    public static void main(String[] args) {
        ArrayList<String> availablePlayers = new ArrayList<>();
        addPlayers(availablePlayers);
        String[] userTeam = new String[5];
        Scanner scanner = new Scanner(System.in);

        int playerCount = 0;
        while(playerCount < 5) {
            System.out.println("Enter name of player to add:");
            String playerName = scanner.nextLine();

            int playerIndex = search(availablePlayers, playerName);

            if(playerIndex != -1) {
                userTeam[playerCount] = playerName;
                availablePlayers.remove(playerIndex);
                playerCount++;
                System.out.println("Successfully added " + playerName);
            } else {
                System.out.println(playerName + " is not an available player.");
            }
        }

        System.out.println("Final Team Roster:");
        for(String player : userTeam) {
            System.out.println(player);
        }
        scanner.close();
    }

    public static int search(ArrayList<String> array, String player) {
        for(int i = 0; i < array.size(); i++) {
            if(array.get(i).equals(player)) {
                return i;
            }
        }
        return -1;
    }

    public static void addPlayers(ArrayList<String> array) {
        array.add("Cam Newton");
        array.add("Antonio Brown");
        array.add("Leveon Bell");
        array.add("Patrick Mahomes");
        array.add("Saquon Barkley");
        array.add("Mike Evans");
        array.add("Odell Beckham Jr.");
        array.add("Travis Kelce");
        array.add("Baker Mayfield");
        array.add("Michael Thomas");
        array.add("Julio Jones");
        array.add("Ezekial Elliott");
        array.add("Alvin Kamara");
        array.add("Davante Adams");
        array.add("Aaron Rogers");
    }
} 	Output matches the solution if player has been removed from list already?	Make sure to remove players from the ArrayList once they have been added to the array
Expected result:
Enter name of player to add: 
Successfully added player

Enter name of player to add: 
Successfully added player

Enter name of player to add: 
Successfully added player

Enter name of player to add: 
Successfully added player

Enter name of player to add: 
Michael Thomas is not an available player.

Enter name of player to add: 
Successfully added player

Final Team Roster: 
Mike Evans
Michael Thomas
Leveon Bell
Patrick Mahomes
Alvin Kamara
Your result:
Enter name of player to add:
Successfully added Mike Evans
Enter name of player to add:
Successfully added Michael Thomas
Enter name of player to add:
Successfully added Leveon Bell
Enter name of player to add:
Successfully added Patrick Mahomes
Enter name of player to add:
Michael Thomas is not an available player.
Enter name of player to add:
Successfully added Alvin Kamara
Final Team Roster:
Mike Evans
Michael Thomas
Leveon Bell
Patrick Mahomes
Alvin Kamara
Difference:
Enter name of player to add: 
Successfully added plMike Evayerns

Enter name of player to add: 
Successfully added pMichael Thomayers

Enter name of player to add: 
Successfully added pLeveon Belayerl

Enter name of player to add: 
Successfully added plPaytrick Mahomers

Enter name of player to add: 
Michael Thomas is not an available player.

Enter name of player to add: 
Successfully added pAlvin Kayemara

Final Team Roster: 
Mike Evans
Michael Thomas
Leveon Bell
Patrick Mahomes
Alvin Kamara
The main method is printing the correct output?	Make sure the response matches the output in the description!
Expected result:
Enter name of player to add: 
Successfully added player

Enter name of player to add: 
Successfully added player

Enter name of player to add: 
Successfully added player

Enter name of player to add: 
Successfully added player

Enter name of player to add: 
Successfully added player

Final Team Roster: 
Baker Mayfield
Leveon Bell
Patrick Mahomes
Michael Thomas
Alvin Kamara
Your result:
Enter name of player to add:
Successfully added Baker Mayfield
Enter name of player to add:
Successfully added Leveon Bell
Enter name of player to add:
Successfully added Patrick Mahomes
Enter name of player to add:
Successfully added Michael Thomas
Enter name of player to add:
Successfully added Alvin Kamara
Final Team Roster:
Baker Mayfield
Leveon Bell
Patrick Mahomes
Michael Thomas
Alvin Kamara
Difference:
Enter name of player to add: 
Successfully added plBaker Mayfierld

Enter name of player to add: 
Successfully added pLeveon Belayerl

Enter name of player to add: 
Successfully added plPaytrick Mahomers

Enter name of player to add: 
Successfully added pMichael Thomayers

Enter name of player to add: 
Successfully added pAlvin Kayemara

Final Team Roster: 
Baker Mayfield
Leveon Bell
Patrick Mahomes
Michael Thomas
Alvin Kamara