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

 

mrsdianneoc@gmail.com > makeLetters
prev  |  next  |  chance

Create a string with the indicated number of each letter. The first number in the array is the number of a's, the second number is how many b's, etc.


makeLetters([2, 2, 2]) → "aabbcc"
makeLetters([1]) → "a"
makeLetters([4, 3, 2, 1]) → "aaaabbbccd"

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

public String makeLetters(int[] lettercount){ }

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: 240 Post-solution available

Copyright Nick Parlante 2017 - privacy