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

 

bbvdMultipleLtr


Write a method that accepts a string 'str' and a number of times to repeat each letter called 'count'. Return a string made up of 'count' copies of each letter in the original string 'str'. Note that 'count' could be zero or a positive integer, but will not be negative. Also note that 'str' could be an empty string.


bbvdMultipleLtr("", 524) → ""
bbvdMultipleLtr("G", 1) → "G"
bbvdMultipleLtr("empty", 0) → ""

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

public String bbvdMultipleLtr(String str, 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: 230

Copyright Nick Parlante 2017 - privacy