Bug 719

Summary: after I run the testQueryAllPass2() function in FlightTest class, I found the output is wrong.
Product: Group 05(2022) Reporter: yiweizhao4 <yiweizhao4-c>
Component: normal class sectionAssignee: yiweizhao4 <yiweizhao4-c>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: ---    
Version: unspecified   
Hardware: PC   
OS: Windows   

Description yiweizhao4 2022-11-20 13:54:46 HKT
summary:
after I run the testQueryAllPass2() function in FlightTest class, I found the output is wrong.

Steps to Reproduce:
1. inFlightTest.java, run the test case testQueryAllPass2()
2. we can see the result of flight.getFlightIndex(). 

Expected output:
The return of FlightIndex() should be 1.

Actual output:
the program returns the Fid instead of FlightIndex.
Comment 1 yiweizhao4 2022-11-20 14:10:09 HKT
solution:
Correct the getFlightIndex() in Flight.java so that it can return the right result 
-- FlightIndex.