Use an array to represent the seating chart of the plane. Initialize all the elements of the array to 0 to indicate that all seats are empty. As each seat is assigned, set the corresponding elements of the array to 1 to indicate that the seat is no longer available.
import java.util.Array s;
import java.util.Rando m;
import java.lang.refle ct.Array;
public class AirlineBooking1
{
//...