about | help | code help+videos | done | prefs |
Write a method named partOfPhrase that accepts a String phrase and a character stop as parameters. The method returns the characters in the String till it encounters the character stop. For example, the call partOfPhrase ("We are painting", 'p') should return "We are " and partOfPhrase ("We are talking", 'p') should return "We are talking". The call partOfPhrase ("",'p') should return the empty string "". partOfPhrase("We are painting", "p") → "We are " partOfPhrase("We are talking", "p") → "We are talking" partOfPhrase("", "p") → "" ...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: 200
Copyright Nick Parlante 2017 - privacy