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

 

orion.a.smith@gmail.com apcsa-encryption > apcsaEncryptCaesarStringKey
prev  |  next  |  chance

Given an input String and a char key, return the String after a key-character Caesar cipher where all the input letters are shifted up key letters ('A'==1, 'B'==2 etc.). This is also sometimes called a Vignere cipher. Precondition: the input String will have only capital letters in it, the input key will be a capital letter too.


apcsaEncryptCaesarStringKey("ABC", "A") → "BCD"
apcsaEncryptCaesarStringKey("HI", "B") → "JK"
apcsaEncryptCaesarStringKey("ZZTOP", "C") → "CCWRS"

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

public String apcsaEncryptCaesarStringKey(String str, char key) { }

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

Copyright Nick Parlante 2017 - privacy