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

 

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

boolean bothEnds7(String str): returns true if the string begins and ends with the number 7.


bothEnds7("7hello8") → false
bothEnds7("7lucky7") → true
bothEnds7("7543210") → false

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

boolean bothEnds7(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: 104

Copyright Nick Parlante 2017 - privacy