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

 

pais@kinetigram.com > A12_arrayFront9
prev  |  next  |  chance

APCS Array 1, Problem 2. Given an array of ints, return true if one of the first 4 elements in the array is a 9. The array length may be less than 4.


A12_arrayFront9([1, 2, 9, 3, 4]) → true
A12_arrayFront9([1, 2, 3, 4, 9]) → false
A12_arrayFront9([1, 2, 3, 4, 5]) → false

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

public boolean A12_arrayFront9(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: 100 Post-solution available

Copyright Nick Parlante 2017 - privacy