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

 

zbaharav@kehillah.org review-loops > evenXY
prev  |  next  |  chance

Given a string, turn every X in an even index to a Y. E.g., "abxc" turns into "abyc", but "abcx" remains unchanged.


evenXY("abxc") → "abyc"
evenXY("abcx") → "abcx"
evenXY("1x23x") → "1x23y"

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

public String evenXY(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: 210

Copyright Nick Parlante 2017 - privacy