Eclipse progra does not run with no errors : So i need to create a program for the user to input match scores and exit by inputting "exit" when prompted. However this code does not run even though there is no errors

    package Main;
    import java.util.Scanner;
    public class Assignment {

	    public static void main(String[] args) {
		    Scanner keyboard = new Scanner(System.in);
		
		    String[] names = new String[10];
		
		
		    int index = 0;
		    while (index<10);
		
			
		    {
			    index++;
			    System.out.print("Home team name: ");
			    names[index] = keyboard.nextLine();
			
			
				System.out.print("Away team name: ");
				names[index] = keyboard.nextLine();
				
				System.out.print("Enter home score: ");
				names[index] = keyboard.nextLine();
				
				System.out.print("Enter away score: ");
				names[index] = keyboard.nextLine();
				
				System.out.print("If you would liketo quit type exit: ");
				if ("exit".equalsIgnoreCase(keyboard.nextLine()));
				
				keyboard.close();
        }
    }
}


I have very little knowledge of java and coding at this point, only very basic commands so i have no clue what is wrong.
				
				
		