Question: Java, please Make a program that will read file (file2.txt). Once you read the file your goal is to create a 2D array with the

 Java, please Make a program that will read file (file2.txt). Once

Java, please

Make a program that will read file (file2.txt). Once you read the file your goal is to create a 2D array with the elements in your program. Ex: String array [][=new String[count][column); Your program should copy the elements from the file and split them, it should split the elements from the file by tokenizing them using the coma and a space (", "). Ex: String I) tokens = x.split(", "); This moment you should be using these operations: While loop For loop Your program should have 3 methods: firstName(), lastName(), age().They should take in a 2-D array that will basically print our specific rows and columns of your array. For example, for method for firstName(), should only print out columns 0 of your array which should be all the first names of the list. Your method called lastName() should only print out columns 1 of your array, and method age() should print out column 2 of your array. Your program should ask the user what category they want to look for. Example: if the user picks first names, your program should print out all the first names on the array Output: Which information would you like to see? firstName, lastName, age User: firstName Clarissa Reyes George Alice Alex Karen Jazin Daniel John Sophia Your program should do this with all the methods. (File2.txt) Clarisa, Dominguez, 19 Reyes, Gonzales, 18 George, Vega, 24 Alice, Smith, al Alex, Johnson, 66 Karen, Lopez, 34 Jazn, Rodriguez, 28 Daniel, Hernandez, 54 John, Levi, 45 Sophia, Perez, 76

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!