if((theOffset<0&&!(ascii<65-theOffset&&ascii>=65)//for each if statement, if the character falls between the range, then the offset value is subtracted
||(theOffset<0&&!(ascii<97-theOffset&&ascii>=97)))){// inclusive to a wrap around (this goes for the following 4 if statements)
offsetVal=ascii+theOffset;
theChar=(char)offsetVal;
message=message+theChar;
...
...
@@ -128,11 +128,11 @@ public class AssessmentPartThree {
message=message+theChar;
continue;
}
theMessage=message;
theMessage=message;//sets the string to message (answer format)