Question: I NEED TO MAKE A FOR LOOP THAT GOES THROUGH THE ARRAYLIST import java.util.*; 5 public class MavRental private ArrayList ); 9 public ArrayList getCustomerList)

 I NEED TO MAKE A FOR LOOP THAT GOES THROUGH THE

I NEED TO MAKE A FOR LOOP THAT GOES THROUGH THE ARRAYLIST

import java.util.*; 5 public class MavRental private ArrayList); 9 public ArrayList getCustomerList) return customerList; public void addCustomer(Customer c) customerList.add(c); public boolean customerExists(String n) boolean exists;-false; for(int i-0; ) if(c.getName ().equals (n)) exists true; return exists; public String printInvoice() return "n

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!