Task 4 of 7 · 0 solved · 7 to go0%
You can read the problem, but answers are checked only for signed-in students. Sign in to answer →

6.1 Scanner — sum a CSV line

Total: 0 / 3 pts
Practice mode — check each part and get hints as you go.
Task

Fill in sumCsv so that it returns the total of the numbers in a comma-separated line.

Split on "," and turn each piece into a number with Integer.parseInt. The program prints 6.

Your solution