Managing Dynamic Flight Data using Collections

Business Scenario

In the previous lab, we learned to use ArrayList to add, display, search, and delete flight records dynamically.

Welcome back,Developers!

Pre-Lab Preparation

  1. Collection interface and its methods

  2. List creation and manipulation

  3. Searching, updating, and deleting elements in a List

git pull origin branchName

Git Pull

Task 1: Deleting the Flight data

1

add the code to delete the flight

2

run the code to check delete (make sure that the flight data is already there)

Task 2 : Updating the flight data

1

add the code to update flight data based on flightNo

2

run the code to check the output (make sure that the flight data is already there)

3

to confirm updation and deletion, we can display all flight data

 

Great job!
We have implemented the Flight Data Management using List

Checkpoint

Java_Lab_17

By Content ITV

Java_Lab_17

  • 9