Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Ash Brett Assessment part 3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ash.brett
Ash Brett Assessment part 3
Commits
b82f304e
Commit
b82f304e
authored
Jan 08, 2019
by
ash.brett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update AssessmentPartThree.java
parent
47ea73f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
AssessmentPartThree.java
src/AssessmentPartThree.java
+3
-1
No files found.
src/AssessmentPartThree.java
View file @
b82f304e
...
@@ -31,6 +31,7 @@ public class AssessmentPartThree {
...
@@ -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
//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
//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
())
{
for
(
char
i
:
letter
.
toCharArray
())
{
//this states that if the char i is a letter then it will run the following code
//this states that if the char i is a letter then it will run the following code
if
(
Character
.
isLetter
(
i
))
{
if
(
Character
.
isLetter
(
i
))
{
...
@@ -68,7 +69,8 @@ public class AssessmentPartThree {
...
@@ -68,7 +69,8 @@ public class AssessmentPartThree {
//This section of the code creates a new instance of StringBuilder called encoded
//This section of the code creates a new instance of StringBuilder called encoded
StringBuilder
encoded
=
new
StringBuilder
();
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
())
{
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
//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
);
char
Result
=
this
.
enryptedCharacter
(
letter
,
theOffset
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment