Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SpaceCookies
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
Charlie Graham Carr
SpaceCookies
Commits
2e15bad8
Commit
2e15bad8
authored
Nov 06, 2017
by
Charlie Graham Carr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SpaceCookies is 'complete'
parent
1159c719
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
Start.java
Start.java
+1
-10
No files found.
Start.java
View file @
2e15bad8
...
...
@@ -32,7 +32,6 @@ public static void main(String[] args)
static
private
HashMap
<
String
,
String
>
variables
=
new
HashMap
<
String
,
String
>();
/** Process a single line of the input program.
* @param line Line to process.
*/
...
...
@@ -45,14 +44,6 @@ private static void process(String line)
}
else
if
(
bits
.
length
==
4
&&
bits
[
0
].
equals
(
"what"
)
&&
bits
[
1
].
equals
(
"was"
)
&&
bits
[
3
].
equals
(
"again?"
))
{
System
.
out
.
println
(
variables
.
get
(
bits
[
2
]));
}
public
static
void
process
(
String
line
)
{
String
[]
bits
=
line
.
split
(
" "
);
if
(
bits
.
length
==
5
&&
bits
[
0
]
equals
(
"that"
)
&&
bits
[
2
].
equals
(
"is"
)
&&
bits
[
3
].
equals
(
"now"
)){
variables
.
put
(
bits
[
1
],
bits
[
4
]);
}
}
}
}
}
//SpaceCookies
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