Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions