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

 

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

You are going to add a certain number of the character 'a' to the end of a string. For example, for the input 5, you will add five 'a' chars to a string. ( "Sparta" -> "Spartaaaaaa")


getShoutingString("Sparta", 5) → "Spartaaaaaa"
getShoutingString("Gonna", 3) → "Gonnaaaa"
getShoutingString("Ya", 10) → "Yaaaaaaaaaaa"

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

public String getShoutingString(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