|
@@ -31,7 +31,6 @@ public class MonkeyTypewriter {
|
31
|
31
|
for (Thread thread: unsafeArray) {
|
32
|
32
|
thread.start();
|
33
|
33
|
}
|
34
|
|
- unsafeCopier.copied = unsafeCopier.copied.substring(1, unsafeCopier.copied.length());
|
35
|
34
|
|
36
|
35
|
SafeCopier safeCopier = new SafeCopier(introduction);
|
37
|
36
|
Thread[] safeArray = new Thread[5];
|
|
@@ -42,7 +41,6 @@ public class MonkeyTypewriter {
|
42
|
41
|
thread.start();
|
43
|
42
|
}
|
44
|
43
|
|
45
|
|
- safeCopier.copied = safeCopier.copied.substring(1, safeCopier.copied.length());
|
46
|
44
|
|
47
|
45
|
// This wait is here because main is still a thread and we want the main method to print the finished copies
|
48
|
46
|
// after enough time has passed.
|