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

 

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

Write a method that returns a string of 'numChars' copies of 'symbol' with no spaces. See the test data.


makeString(5, "x") → "xxxxx"
makeString(3, "7") → "777"
makeString(1, "A") → "A"

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

public String makeString(int numChars, char symbol) { }

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

Copyright Nick Parlante 2017 - privacy