Okay, I need to read in a variable from a user for an object which I defined, called CatalogItem. I don't know how I can convert the String which I read in from the user into a CatalogItem object.
...
Type: Posts; User: TheEvilCouncil
Okay, I need to read in a variable from a user for an object which I defined, called CatalogItem. I don't know how I can convert the String which I read in from the user into a CatalogItem object.
...
Oh man I totally missed that, thank you so much!
Here's my code
public void add(int newID, String newDesc, double newCost)
{
catalogItems.trimToSize();
CatalogItem copy = new CatalogItem(newID, newDesc, newCost);
for(int i = 0; i <...