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

 

jebbert@volusia.k12.fl.us > crazyStringOffice
prev  |  next  |  chance

Write a method that accepts a string as an input parameter and returns a new version of the string as shown in the test data. This method can be done in one line of code using recursion. However, recursion is NOT required.


crazyStringOffice("Jim") → "JimJiJ"
crazyStringOffice("Creed") → "CreedCreeCreCrC"
crazyStringOffice("paper") → "paperpapepappap"

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

public String crazyStringOffice(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: 290

Copyright Nick Parlante 2017 - privacy