Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: How to do this ? (JAVA)

  1. #1
    Junior Member
    Join Date
    Jan 2022
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry How to do this ? (JAVA)

    1.1. Create a base class Airport + interface + package:

    name;
    address;
    state.

    1.2. Create a derivative class Airport Passenger + interface + package:

    name;
    surname;
    where it flies (direction of travel);
    flight number. // the int type must be selected for this attribute. This feature is unique [unchangeable]

    2. Create 10 airport passengers and add them to the selected array:

    2.1. Print all passenger information on the screen;
    2.2. Remove passengers flying to the Maldives [need quarantine, not vacation]
    2.3. Change flight direction to 'Canada' for passengers flying to 'USA' [less likely to get infected]
    2.4. Sort passengers by where they fly, if the flight direction is the same - by flight number
    2.5. Ability to find a passenger from an array by his flight number. The flight number can be entered from the keypad. Only numbers (!) Can be entered (exception processing if non-numbers are entered)
    2.6. Print the passenger information with the highest flight number.
    2.7. Print an array of passengers before and after changes (eg after deleting, changing, sorting, etc.).

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    24,530
    Thanks
    55
    Thanked 2,659 Times in 2,609 Posts

    Default Re: How to do this ? (JAVA)

    What problems are you having with your assignment?
    Do you have any specific questions?
    Be sure to wrap all posted code in code tags.
    If you don't understand my answer, don't ignore it, ask a question.

Tags for this Thread