Commit 66120c98 authored by Bran's avatar Bran

corrected some comments

parent 5aa4b593
...@@ -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
boolean upperCaseCharacter; //creates a boolean caleld uppercasecharacter boolean upperCaseCharacter; //creates a boolean caleld uppercasecharacter
int letterPlace = 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 {
String output = ""; String output = "";
for (char letter : theMessage.toCharArray()) //creates a or loop that iterates the char "letter" through theMessage.tochararray for (char character : 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
} }
return output; // returns the value of output return output; // returns the value of output
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment