Question: In JAVA NEED ASAP The input file contains of a number of records consisting of an account number, name and balance separated by tabs. Write
In JAVA



NEED ASAP
The input file contains of a number of records consisting of an account number, name and balance separated by tabs. Write a program that 1. reads this file and store the records in an string array list 2. prints all the records 3. ask user to enter an account number (the account number must be from the account number printed above) 4. print the record with the corresponding account number in your program write and use the following method String getRecord(ArrayList records, String accountNo) : returns the full record with the given accountNumber nput: file2-2.txt Sblic static void main(String[] args) throws FileNotFoundException \{ // To read the file while(in.hasNextLine())\{ String line = in.nextLine(); // add your code here to store the file contents // close scanner in.close(); // to read user's input Scanner in2 = new Scanner(System. in); // add your code here to for user input // and display the corresponding record, if found
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
