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

Update AssessmentPartThree.java

parent bf8c638f
...@@ -21,6 +21,7 @@ public class AssessmentPartThree { ...@@ -21,6 +21,7 @@ public class AssessmentPartThree {
StringBuilder encoded = new StringBuilder(); StringBuilder encoded = new StringBuilder();
//This section of the code creates a new string which is equal the value of theChar //This section of the code creates a new string which is equal the value of theChar
String letter=String.valueOf(theChar); String letter=String.valueOf(theChar);
//These statements are set up to ensure that the offset value is able to scale up and down without encountering an error
if (theOffset > 26){ if (theOffset > 26){
theOffset = theOffset%26; theOffset = theOffset%26;
} }
......
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