I'm working through the infamous TDD Bowling Game Example. I have a string as follows. How can I add the first 2 values together to show 3?
String score = "12|--|--|--|--|--|--|--|--|--|";
I think I convert this to an array of integers, but I'm then unsure how to add the first 2 elements together.