Question: **Make a customer array, and put the objects in that array,when you run the loop you will have a counter it will call each object

**Make a customer array, and put the objects in that array,when you run the loop you will have a counter it will call each object from the array. Then will create each customer at a time.**

**Make a customer array, and put the objects in that array,when you

**DOWN BELOW IS ALL THE INFO NEEDED ABOUT THE CUSTOMERS****

***COUCH AND TV ARE ENUM TYPES

run the loop you will have a counter it will call each

import java.io. import java.util.* public class ReadCustomers public static void main(String args []) Scanner input; String line; String array; Customer ci; Customer c2; Customer c3; // make a customer array, and put the objects in that array,when you run the loop you will have a counter it will call each object from the array. Then will create each customer at a time try input = new Scanner(new File ("customers. txt")); //declare a line and will read in a line while(input.hasNext)) line nput.nextLine(); array- line.split(","); System.out println(array.toString)); //have customer object c1new Customer(array [0], new Address(array [1], array (21,array [3],array [4]), array [5]); c2 new Customer(array[0], new Address (array [1],array [21,array [3],array [4]), array [5]) c3 = new Custome r (array [0], new Address(array[1],array [2] ,array [3],array[4]), array [5]); System.out.println(c1.toString)); System.out.println(c2.toString)); System.out println(c3.toString))

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!