// Complete this method so that it uses encryptedCharacter to
// return the encrypted version of theMessage using theOffset
StringBuilderstrBuilder=newStringBuilder();
charx;
// return the encrypted version of theMessage using theOffset
StringBuilderstring=newStringBuilder();//creates an empty StringBuilder called String
charj;// creates an empty char called j
for(inti=0;i<theMessage.length();i++)
for(inti=0;i<theMessage.length();i++)// creates a for loop that iterates until i is greater then the length of whatever is stored in the string "theMessage"
{
x=theMessage.charAt(i);
j=theMessage.charAt(i);// makes j equal to the i'th character of theMessage