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

 

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

Write a method that accepts parameters 'howMany' and 'ltr', then returns a string made up of 'howMany' copies of 'ltr'. For example, if 'howMany' is 6 and 'ltr' is the 'x' character, the method returns "xxxxx". Look at the test data for further examples.


sep27_2016_APSLHL_makeLetters(5, "x") → "xxxxx"
sep27_2016_APSLHL_makeLetters(2, "a") → "aa"
sep27_2016_APSLHL_makeLetters(17, "w") → "wwwwwwwwwwwwwwwww"

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

public String sep27_2016_APSLHL_makeLetters(int howMany, char ltr) { }

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

Copyright Nick Parlante 2017 - privacy