about | help | code help+videos | done | prefs |
Given a String containing a sentence, break up the sentence and put each word into a String array. Use the method .split(" "), which returns a String[] where sending it a space indicates that you want to split up the String by spaces. string_splitItUp("Hello students!") → ["Hello", "students!"] string_splitItUp("Split up this String!") → ["Split", "up", "this", "String!"] string_splitItUp("Use the split method!") → ["Use", "the", "split", "method!"] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy