•
Contents
•
Up
•
Test
•
Define function numBs(
s
) that produces the number of
b
's in string
s
. For example, numBs("bob") = 2. Only count lower case
b
's.
(
Hint.
Use a loop. Look at each character. Keep a count of the number of
b
's.
Answer
Store
Compute
[
Language:
Java
Kind:
function definition]