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.
is there a way to use the String value that I read from the keyboard, "temp", as an identifier of a CatalogItem object. What I mean is CatalogItem temp.Code :
System.out.print("Enter the name of desired CatalogItem to add: "); temp = scan.next(); CatalogItem newItem = CatalogItem(temp);