about | help | code help+videos | done | prefs |
numExclamations
My partner uses a lot of exclamation marks. Sometimes too many. Create a method public int numExclamations (String phrase), that will return how many times she used ! in her phrase. numExclamations("Hello!") → 1 numExclamations("Wow!!") → 2 numExclamations("No exclamation here") → 0 ...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