Examine the following code snippet. Add the necessary code…
Examine the following code snippet. Add the necessary code to do the following tasks, in order: Shuffle the airport code names. Add a new airport code (real or fake) to the collection. Sort the collection in reverse order. Locate the index of the code you added to the collection. Print the contents of the collection, as List objects. Indicate what the output of the program would be once it’s run. import java.util.ArrayList;import java.util.Collections;import java.util.List;public class AirportCodes { public static void main(String[] args) { List airportCodes = new ArrayList(); airportCodes.add(“JFK”); // New York airportCodes.add(“LHR”); // London Heathrow airportCodes.add(“LAX”); // Los Angeles airportCodes.add(“HND”); // Tokyo Haneda //Your code here }}