Search:

Type: Posts; User: MrPigeon

Search: Search took 0.12 seconds.

  1. Re: Using a mutator method to set data to an array element

    I'm trying to use the mutator method setName(String) to set the values of each element of an array. So the first string entered by the user would be assigned to product[0] and so on. On an earlier...
  2. Using a mutator method to set data to an array element

    Hey guys, the problem I'm having is I want to use a mutator method to set data for an array element. The code I have so far is:


    public void addProduct(String productName)
    //Goes through...
Results 1 to 2 of 2