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

 

konstans@stuy.edu set1 > rotateStringBy1
prev  |  next  |  chance

Given a string, return a new string that has each character shifted up by one ASCII character value. e.g. A->B x->y. You can convert a char to ascii: (int)'a' -> 97 You can convert back: (char)98 -> 'b'


rotateStringBy1("ABCXYZnml") → "BCDYZ[onm"
rotateStringBy1("what!") → "xibu\""
rotateStringBy1("abc123XYZ") → "bcd234YZ["

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

public String rotateStringBy1(String s){ }

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

Copyright Nick Parlante 2017 - privacy