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

 

tim@ggc.edu > getRepeatingString
prev  |  next  |  chance

You are going to repeat a string a given number of times. For example, if the input string is "Friday" and the input int is 3, you will return "FridayFridayFriday"


getRepeatingString("Friday", 3) → "FridayFridayFriday"
getRepeatingString("NeverGonna", 2) → "NeverGonnaNeverGonna"
getRepeatingString("Party", 5) → "PartyPartyPartyPartyParty"

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

public String getRepeatingString(String str, int num) { }

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