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

 

norm.krumpe@muohio.edu > halvesMatch
prev  |  next  |  chance

Given a non-empty string with an even number of characters, return true if the first half of the word is identical to the second half of the word.


halvesMatch("yesyes") → true
halvesMatch("nonono") → false
halvesMatch("aa") → true

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

boolean halvesMatch(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: 100

Copyright Nick Parlante 2017 - privacy