about | help | code help+videos | done | prefs |
Write a method that counts how many times the word "summer" appears anywhere in the array of strings in any position in each string. This should be case sensitive, so only count "summer" if it is all lowercase. You may only use the following string methods: .equals, .length, .substring, .charAt. lastDayQuiz2014N2(["summer", "tsummer", "summerz", "summe", "ummmer", "", "s", "su"]) → 3 lastDayQuiz2014N2([""]) → 0 lastDayQuiz2014N2(["summer"]) → 1 ...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