import java.util.*; /** A Provider supplies something to our business. */ public class Provider implements BusinessContact { // instance variables private String name; // provider's name private String address; // provider's address private ArrayList products; // things they provide for us /** Construct a new Provider with the given name and address*/ public Provider ( String name, String address) { this.name = name; this.address = address; this.products = new ArrayList(); } /** Set this provider's product */ public void addProduct(String thing) { this.products.add(thing); } // plus accessor, mutator methods for name, address, other instance variables /** Change the address of this provider */ public void setAddress(String address) { this.address = address; } /** Return the name of this provider */ public String getName() { return this.name; } /** Return the address of this provider */ public String getAddress() { return this.address; } /** * Override toString from Object: write in a String * the name, address and products of this Provider */ public String toString() { String s = this.name + " " + this.address; s += "\nProducts: "; for(int i=0; i