public void displayFlightInfo() { System.out.println( "Flight " + getFlightNumber() + " in the " + aircraft.getAircraftType() + " is ready for boarding."); System.out.println("Here is the final boarding list for this flight:\n"); for (Passenger p : passCollection) { if (p.getStatus()) setAmount(112.50); else setAmount(75.00); System.out.println( p.getFirstName() + " " + p.getLastName() + " - " + (p.getStatus() ? "FIRST CLASS" : "ECONOMY CLASS") + " passenger. $" + getAmount()); // (p.getStatus()? 112.50 : 75.00)); } }