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

 

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

Write a method that returns the number of occurances of the integer 37 in the input parameter array. Only count the NUMBER 37. Do NOT count numbers such as 375 or 4371. In other words, only count the ACTUAL NUMBER, not its digits. Look at the test data for additional details.


countArray37([37, 5, -37, 8, 323, 3737, 378, 37]) → 2
countArray37([]) → 0
countArray37([37]) → 1

...Save, Compile, Run (ctrl-enter)

public int countArray37(int[] nums) { }

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: 290

Copyright Nick Parlante 2017 - privacy