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

 

sspiege3@schools.nyc.gov > posThree
prev  |  next  |  chance

Given an array of Strings! Find the position of the first element with the length of 3. If one doesn't exist, return -1.


posThree(["Sara", "Sally", "Steve"]) → -1
posThree(["yes", "yes", "no"]) → 0
posThree(["word up", "ben", "can", "run"]) → 1

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

public int posThree(String [] words) { }

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

Copyright Nick Parlante 2017 - privacy