@@ -23,7 +23,6 @@ public class AssessmentPartThree {
...
@@ -23,7 +23,6 @@ public class AssessmentPartThree {
char[]alphabet={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};// creates an array string string containing each letter of the alphabet
char[]alphabet={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};// creates an array string string containing each letter of the alphabet
booleanupperCaseCharacter;//creates a boolean caleld uppercasecharacter
booleanupperCaseCharacter;//creates a boolean caleld uppercasecharacter
intletterPlace=0;//creates an int called letterplace and assigns it a value of 0
upperCaseCharacter=Character.isUpperCase(theChar);// makes uppercasecharacter equal to the uppercse value of theChar
upperCaseCharacter=Character.isUpperCase(theChar);// makes uppercasecharacter equal to the uppercse value of theChar
theChar=Character.toLowerCase(theChar);//makes theChar equal to the lowercase value of theChar
theChar=Character.toLowerCase(theChar);//makes theChar equal to the lowercase value of theChar
...
@@ -79,10 +78,10 @@ public class AssessmentPartThree {
...
@@ -79,10 +78,10 @@ public class AssessmentPartThree {
Stringoutput="";
Stringoutput="";
for(charletter:theMessage.toCharArray())//creates a or loop that iterates the char "letter" through theMessage.tochararray
for(charcharacter:theMessage.toCharArray())//creates a for loop that iterates the char "character" through theMessage.tochararray
{
{
letter=enryptedCharacter(letter,theOffset);// makes letter equal to the value obtained when running the value of theMessage through the encryptedcharacter method above
character=enryptedCharacter(character,theOffset);// makes letter equal to the value obtained when running the value of theMessage through the encryptedcharacter method above
output=output+letter;// makes output equal to output + letter
output=output+character;// makes output equal to output + letter