public Item searchForItem(String description)
I need to return an item
The name of the item is the description,
and the condition should be that :
1. If that object is in the array list(description is the object) i want the description to be returned plus the detail(which is the integer rating)
2. if that object isnt in the array list(description remember is the objects name) i want a message that the object isnt in the array list and so doesnt have details(integer rating)
what will be a code for this?
Thanks