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

 

list_contains7


Given a list of integers, return true if there is the value 7 anywhere in the list. Return false if there are no values of 7 in the list.


list_contains7([3, 5, 8, 2]) → false
list_contains7([1, 6, 9, 4, 2]) → false
list_contains7([7, 2, 3]) → true

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

public boolean list_contains7(List<Integer> list) { }

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

Post-solution available

Copyright Nick Parlante 2017 - privacy