I am making a theatre bookings system for some school work.

I have variables A1, A2, A3, A4 etc... all of type AtoCSeat (Which I have created).

I want the user to be able to remove a booking, however I cannot figure out how to have the user input the desired seat due to the variable not being a String and being of type AtoCSeat and therefore the Scanner not accepting it.


I know this code won't work, but I was thinking something along the lines of:

System.out.println("Which seat would you like to remove a booking for?");
        Scanner userInput = new Scanner(System.in);
        AtoCSeat userSelection = userInput.nextLine();       // won't work as nextLine() looks for Strings


Can anybody help me please?
Once I know how to get java to understand the user input of a seat, I can actually finish the rest of my program myself, it is just this...