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

 

dario.sonego@gmail.com > allungamentoooooo
prev  |  next  |  chance

Allungamentoooooo Data una stringa s, ed un numero n, ottenere una nuova stringa con l'aggiunta di n ripetizioni dell'ultimo carattere.
Se la stringa data รจ vuota, si ottiene una stringa vuota.


allungamentoooooo("ciao", 0) → "ciao"
allungamentoooooo("ADIOS", 1) → "ADIOSS"
allungamentoooooo("adios", 2) → "adiosss"

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

String allungamentoooooo(String s, 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

Difficulty: 260

Copyright Nick Parlante 2017 - privacy