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
Collection interface and its methods
List creation and manipulation
Searching, updating, and deleting elements in a List
git pull origin branchNameGit 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