| about | help | code help+videos | done | prefs |
apcsaArraysGrainsOfSand
Given a String containing a series of integers separated by single spaces representing the number of grains in different small sand piles, calculate and return the sum of all those numbers as an integer. HINT: Convert Strings to integers using Integer.parseInt(arr[i]).apcsaArraysGrainsOfSand("1 2 3") → 6 apcsaArraysGrainsOfSand("10 20 30") → 60 apcsaArraysGrainsOfSand("100") → 100 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 220
Copyright Nick Parlante 2017 - privacy