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

 

orion.a.smith@gmail.com hcs-strings > apcsaStringsGimmeLastThreeReversed
prev  |  next  |  chance

Given a String input, return the last three characters in REVERSED order. Precondition: the input String has at least three characters.


HINT

You will need length() and substring() or charAt() methods, as well as concatenation to complete this challenge.  Or you can use a loop...

apcsaStringsGimmeLastThreeReversed("Blah") → "hal"
apcsaStringsGimmeLastThreeReversed("I am not a boy") → "yob"
apcsaStringsGimmeLastThreeReversed("When will you come home?") → "?em"

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

public String apcsaStringsGimmeLastThreeReversed(String str) { }

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

Copyright Nick Parlante 2017 - privacy