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

 

srp4379@lausd.net quiz4 > nearEnd
prev  |  next  |  chance

boolean nearEnd(String str). Returns true if str nearly starts with "123" and nearly ends with "789". If you ignore the first character, the string "a123bcd" nearly starts with "123". If you ignore the last character, the string "the789z" nearly ends with "789".


nearEnd("a123mno789z") → true
nearEnd("123blue789") → false
nearEnd("b123red689z") → false

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

boolean nearEnd(String str) { }

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: 120

Copyright Nick Parlante 2017 - privacy