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

 

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

Write a RECURSIVE method that returns a string of 'count' copies of 'ltr'. Your method MUST be recursive in a meaningful way to earn credit. Personally, I wrote a helper method, just so I wouldn't have to make a recursive call with that really long method name... but that is up to you.


test2021_02_11_P1SLHL_RecursiveString("7", 13) → "7777777777777"
test2021_02_11_P1SLHL_RecursiveString("a", 3) → "aaa"
test2021_02_11_P1SLHL_RecursiveString("q", 5) → "qqqqq"

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

public String test2021_02_11_P1SLHL_RecursiveString(String ltr, int count) { }

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

Copyright Nick Parlante 2017 - privacy