Question: . . Create a new Java project called your name. Use the underscore () to replace any space characters. Create a new package in

. . Create a new Java project called your name. Use the underscore () to replace any space characters. Create

. . Create a new Java project called your name. Use the underscore () to replace any space characters. Create a new package in this project called assignment2_1. Add the following class to this package: o Flight (attributes: flightID, destination, int> capacity, priorityCode, FType flightType, attributes String day, month, year(which is for date) Methods: O constructor/setters/getters/toString()) FType Enum - international, national, cargo Airline (attribute: ArrayList < Flight> FlightList) Methods: void joinFlight(Flight f) Inserts a flight into the list void landFlight(Flight f) lands flight -- removes flight from the list int size() returns number of aircraft in the list void clear() lands all flights leaving the list empty void display() displays a list of flights in the list. 2

Step by Step Solution

3.38 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Sure heres a Java project that follows your requirements Project Name yourname Package assignment21 ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!