id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

jebbert@volusia.k12.fl.us > lastDayQuiz2014N2
prev  |  next  |  chance

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)

public int lastDayQuiz2014N2(String[] strs) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 220

Copyright Nick Parlante 2017 - privacy