Commit b82f304e authored by ash.brett's avatar ash.brett

Update AssessmentPartThree.java

parent 47ea73f5
......@@ -31,6 +31,7 @@ public class AssessmentPartThree {
}
//This section of the code creates a char called i and converts the string Letter to an array of characters
//i is the selected character of the array
//this effectivily states for that each character in letter run the code below
for (char i : letter.toCharArray()) {
//this states that if the char i is a letter then it will run the following code
if (Character.isLetter(i)) {
......@@ -68,7 +69,8 @@ public class AssessmentPartThree {
//This section of the code creates a new instance of StringBuilder called encoded
StringBuilder encoded = new StringBuilder();
//this section of the code states that for each time letter within the character array it should run the code below
//this section of the code states that for each letter within the character array it should run the code below
//the char letter is also created to contain this value
for (char letter : theMessage.toCharArray()) {
//This section of code takes in the char letter and theOffset in order to run the method enryptedCharacter using these values
char Result = this.enryptedCharacter(letter, theOffset);
......
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