Create a class called Client, the Client class must contain attributes for Clien
ID: 663731 • Letter: C
Question
Create a class called Client, the Client class must contain attributes for Client name, Client ID, starting balance, and closing balance, and all other accessor/mutator/constructor functions as necessary.
2) Assume you have a client.txt file with the following sample information.
Charles Smith|100235|5700.75|1200.00
James Peterson|320056|349.56|4005.56
Francis Lewis|400556|7500.00|456.23
William Burgess|45399|5000.00|1245.56
Philip Wilson|10090|10000.00|2300.75
James Brown|34291|25000.45|31454.86
3) Create a Client ArrayList to process input records in main().
4) Use a for loop to read in the information from client.txt.
5) The GUI to this program should look similar to this:
6) Once the user hits the display button, everything read in from the file should display in the Console window in this format.
Explanation / Answer
Scanner s = new Scanner(new File("filepath")); ArrayList list = new ArrayList(); while (s.hasNext()){ list.add(s.next()); } s.close();Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.