My array is setup to contain a string in every index. This string is a representation of an airline seating chart.
for(int i = 0; i < 7; i++)
{
airline[i] = (i+1) + " AB CD";
}
After the user has input a char value for the row and column they want to reserve, I should be replacing the seat with an 'X'. For example, they input: row: 1 column: A, at 1A, I should replace the A with an X so it cannot be checkout again by another user. I am using:
airline[i].replaceAll('A', 'X');
After a print statement of the array, I notice nothing is changing.