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

 

evenFirst


Given an array of ints, return true if the first element is even. Otherwise return false. Assume that the array has at least one element.


evenFirst([5, 6, 10]) → false
evenFirst([8, 7, 9]) → true
evenFirst([83, 33, 0, 14]) → false

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

public boolean evenFirst( 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

Copyright Nick Parlante 2017 - privacy