Please zip all of the programs (.java files only) below into one folder saved as JavaPrograms3. For all problems:
Use Scanner for input and println/printf for output. No GUI dialog boxes.
1. Write a program that reads “babynames.txt” and prints all boy and girl names that match. Example line from “babynames.txt”:
1 Michael 462085 2.2506 Jessica 302962 1.5436 Each line of this file Â“babynames.txtÂ” has a first name(boy) and a second name(girl. Ignore all numbers in each line and read only the names. There are 1,000 boy names and 1,000 girl names(one of each on every line for a total of 1,000 lines.
The program should read the names and compare them. All matching boy and girl names should be printed out by the program. Â• Let the user enter the file name from the keyboard. Â• Use Java 7 NIO.
Output should look similar to below.
Sample Run (partial run): Enter the file name: babynames.txt Tyler Ryan Jordan Christian Cameron Â… Tayler Ashley Notes/Hints/Tips:
Use the example Java program (UppercaseFileConverter.java) to help with the use of Java 7 NIO. Name the program: BothBabyNames.java.
Tutorial contain java program, and A++ work and very detail comments.