Question: Write code to take record of Passengers in Arrays (PassName[], source[], destination[] with string data type and Fare[] with double data type) by using scanner
Write code to take record of Passengers in Arrays (PassName[], source[], destination[] with string data type and Fare[] with double data type) by using scanner class. Read all data from arrays and display those passengers who are travelling from Islamabad to Karachi.
write java code
Step by Step Solution
3.40 Rating (153 Votes )
There are 3 Steps involved in it
Source code Sample Output import javautilScanner public clas... View full answer
Get step-by-step solutions from verified subject matter experts
