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

 

jgreenawalt@ccboe.com kjell46andahalf > someTeen
prev  |  next  |  chance

Given an array of ints, return true if at least one element is a teen (between 13 and 19, inclusive). If no elements are in the array, see the first sentence.


someTeen([13, 14, 15, 16, 17, 18, 19]) → true
someTeen([113, 114, 115, 116, 117, 118, 119, 20]) → false
someTeen([113, 114, 15, 112, 116, 117, 1118, 11119]) → true

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

public boolean someTeen(int [] ages){ }

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: 200 Post-solution available

Copyright Nick Parlante 2017 - privacy