// Complete this method so that it uses encryptedCharacter to
// 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++)// creates a for loop that iterates until i is greater then the length of whatever is stored in the string "theMessage"
{
j=theMessage.charAt(i);// makes j equal to the i'th character of theMessage
StringBuilderstrBuilder=newStringBuilder();
charx;
for(inti=0;i<theMessage.length();i++)
if(Character.isLetter(j))// if the value assigned to j is a letter runs the following
{
x=theMessage.charAt(i);
j=(char)(theMessage.charAt(i)+theOffset);// makes j a char equal to the i'th value of theMessage + the value of the offset