about | help | code help+videos | done | prefs |
Write a method named numWords that receives a String passage and determines how many individual words are in the passage. you may assume that the passage has at least one word. You will need to focus on spaces. numWords("apple") → 1 numWords("apple banana carrot dill") → 4 numWords("apple banana") → 2 ...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: 202 Post-solution available
Copyright Nick Parlante 2017 - privacy