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

 

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

Write a method that returns a new string with the last part of the string placed in front of the first part. The parts are split at the 'splitAt' position indicated by that parameter. You may only use string methods and operations we have used in class.


ccc1LastFirst("This one is not too difficult", 5) → "one is not too difficultThis "
ccc1LastFirst("Computer Programming Class is COOL", 15) → "mming Class is COOLComputer Progra"
ccc1LastFirst("abcdefg", 1) → "bcdefga"

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

public String ccc1LastFirst(String str, int splitAt) { }

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

Copyright Nick Parlante 2017 - privacy