Assignment task
Write java Code
Write a java console application that allows the user to read,validate, store, display, sort and search
data such as flight departure city (String), flight number(integer), flight distance (integer), flight
price (double) and discounted flight price (double) for N flights.N should be declared as a constant
and it should be equal to the largest digit of your student idnumber (e.g. if your ID number is
S7840213 then N should be equal to 8 and you can declare it asfinal int N=8;). The flight departure
city, flight number, flight distance, flight price and discountedflight price must be stored in an
Array/ArrayList (index 0 for
PayPal Gateway not configured
PayPal Gateway not configured