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...
Type: Posts; User: MrPigeon
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...
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...