Hey guys, i'm new to the Java and have stumbled on a few things.
When a button is clicked on my program an string is printed to a JList model.
Snickers Bar ............$1.00
Now what i am trying to do is keep a running total of all these items and i want to use a function that finds the double within the string and then adds it to my total variable.
I'm just having trouble coming across this function that i speak of.
Any help is much appreciated! thanks