Question: 2 . 1 Create a file Main.java in which to write your code for this question. 2 . 2 Write code for a main method
Create a file Main.java in which to write your code for this question.
Write code for a main method to build a Min Heap from the data in flights.txt
You will need to write code that performs String preprocessing. This means transform
the raw data into the appropriate Node attributes and calculate the arrival time, before
creating a Node and adding it to the Heap. The heap should be ordered by arrival time.
In the main method, print out the order in which incoming flights should land Sample data: flights.txt
registrationno departuretimestamp, flightduration hh:mm:ss
ZA::::
ZA::::
ZA::::
ZA::::
ZA::::
ZA::::
ZA::::
ZA::::
ZA::::
ZA::::
ZA::::
ZA::::
ZA::::
ZA::::
ZA:::: Give me a code that runs with all the methods
ZA::::
ZA::::
ZA::::
ZA::::
ZA::::
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
