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

 

abraskin@mbusd.org 2019_units1-4_practice > lasN_Fir
prev  |  next  |  chance

Given a non-empty String return a String created by repeating the last character n times and then the first character once.


lasN_Fir("Hello", 5) → "oooooH"
lasN_Fir("X", 3) → "XXXX"
lasN_Fir("boo", 8) → "oooooooob"

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

public String lasN_Fir(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: 200

Copyright Nick Parlante 2017 - privacy