Quote Originally Posted by jmcilhinney
Again, ask yourself how you would do it physically. You would look at each item in the list to see if one began with "Coke" and, if it did, you would replace it, otherwise you'd add a new item. Programming is not divorced from physical reality. It's just an implementation of physical reality.
Ok i understand what you mean, but i would not know how to code it. what is the code to check if an item began with coke? and what is the code to replace the item?


Thanks.