constructor class called Customer. I need to implement a program with at least 3 methods 2 of them read a sequence of zero or more lines each containing the name and id of one customer. Instantiate on Customer object per line and store each object in an array of objects. The array is 10 elements long.;The sequence of names and ids will end with an empty line;After the empty line, the program will receive zero or more lines with the following format;The program must change the balance of the customer identified by the given customer-id with the specific amount;After all input is over, print every Customer object;Example;Input;Name1 Id1;Name2 Id2;Name3 Id3;Id1 50;Id3 45;Id4 -40;basically I'm having a hard time with the input. I have a method called readAndStore(Scanner scanner) that I used a while loop to accept a stream of input until I hit enter, but I'm supposed to have a second method (I called updateBalance(Scanner scanner) that allows the seamless input and compares the Id's entered with what is already stored in the Customer array and it updates the balances.
Paper#69372 | Written in 18-Jul-2015Price : $32