Question: This is in JAVA! Write a program that takes two command line arguments. The two arguments are the names of two files. Your program copies
This is in JAVA!
Write a program that takes two command line arguments. The two arguments are the names of two files. Your program copies every line of the first file to the second file, except for lines that are blank. Your program should have a "usage" method similar to that in the CaeserCipher program that is called if the user doesn't supply the correct number of arguments.
Write a second program that reads the attached file called airports.dat. This is a file that contains information for all airports in the world. Each line in the file contains information about one airport. Each line begins with a number, followed by a comma, followed by an airport name in double quotes, followed by a comma, followed by a city name in double quotes, followed by other information that you don't need for this exercise. Your program should ask the user for the name of a city and then print all of the airports in that city. I've attached a screenshot that illustrates how your program should behave.
The airports.dat file has like 14000 lines, or I would post it here. You should be able to use any data or text file to test the program. This is the attached image of how the program should behave:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
