This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hey guys, have a 2darray which looks like; circle red 0.2 square green 1.1 circle blue 2.0
Now i can search the array for say shape circle, but i also want to total the value of circle so above will become 2.2 when added up, at the moment my code just total the number of circle so above would be 2 circles, can some one please show me how i might edit my code to total value opposed to how many;
do you think i would have to put some kind of for loop within my if statement to total value of circle or square ect.