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

 

displayString


Display a String value n times on one line and then advance to the next line. You must use recursive method.


displayString("#", 3) → "###"
displayString("&", 5) → "&&&&&"
displayString("Hello", 7) → "HelloHelloHelloHelloHelloHelloHello"

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

public String displayString(String str, int n){ }

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

Copyright Nick Parlante 2017 - privacy