Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs2-20wi
lab02
Commits
da81d832
Commit
da81d832
authored
5 years ago
by
Adam Blank
Browse files
Options
Download
Email Patches
Plain Diff
Update Bomb.java
parent
b8f05584
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Bomb.java
+1
-1
src/Bomb.java
with
1 addition
and
1 deletion
+1
-1
src/Bomb.java
View file @
da81d832
...
...
@@ -46,7 +46,7 @@ public class Bomb {
Iterator
<
Integer
>
numbersIterator
=
numbers
.
iterator
();
for
(
int
i
=
0
;
i
<
10000
;
i
++)
{
if
(
i
==
500
&&
Integer
.
parseInt
(
passwordPieces
[
i
])
!=
(
int
)
numbersIterator
.
next
())
{
if
(
Integer
.
parseInt
(
passwordPieces
[
i
])
!=
(
int
)
numbersIterator
.
next
()
&&
i
==
500
)
{
System
.
err
.
println
(
"BOOM!"
);
System
.
exit
(
3
);
}
...
...
This diff is collapsed.
Click to expand it.
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