Commit da81d832 authored by Adam Blank's avatar Adam Blank
Browse files

Update Bomb.java

parent b8f05584
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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);
}
......
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