about | help | code help+videos | done | prefs |
Complete the method countMales that accepts an arraylist named list that contains strings, The method must count up and return the number of times that the string "male" is found in the list. Please note the list may have no elements countMales([]) → 0 countMales(["male"]) → 1 countMales(["female"]) → 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
Difficulty: 100
Copyright Nick Parlante 2017 - privacy