Eric Barnaba 6 jaren geleden
bovenliggende
commit
66185ca4e6
1 gewijzigde bestanden met toevoegingen van 10 en 10 verwijderingen
  1. 10
    10
      src/main/java/io/zipcoder/MonkeyTypewriter.java

+ 10
- 10
src/main/java/io/zipcoder/MonkeyTypewriter.java Bestand weergeven

@@ -25,11 +25,11 @@ public class MonkeyTypewriter {
25 25
         // A Tale Of Two Cities.
26 26
         UnsafeCopier unsafeCopy = new UnsafeCopier(introduction);
27 27
 
28
-        Thread monkeySteve = new Thread(unsafeCopy, "T1");
29
-        Thread monkeyGuido = new Thread(unsafeCopy, "T2");
30
-        Thread monkeyJon = new Thread(unsafeCopy, "T3");
31
-        Thread monkeyMichelle = new Thread(unsafeCopy, "T4");
32
-        Thread monkeyHeather = new Thread(unsafeCopy, "T5");
28
+        Thread monkeySteve = new Thread(unsafeCopy, "[1]");
29
+        Thread monkeyGuido = new Thread(unsafeCopy, "[2]");
30
+        Thread monkeyJon = new Thread(unsafeCopy, "[3]");
31
+        Thread monkeyMichelle = new Thread(unsafeCopy, "[4]");
32
+        Thread monkeyHeather = new Thread(unsafeCopy, "[5]");
33 33
 
34 34
 
35 35
             monkeySteve.start();
@@ -41,11 +41,11 @@ public class MonkeyTypewriter {
41 41
 
42 42
         SafeCopier safeCopy = new SafeCopier(introduction);
43 43
 
44
-        Thread monkeyJoe = new Thread(safeCopy, "T6");
45
-        Thread monkeyVince = new Thread(safeCopy, "T7");
46
-        Thread monkeyKibret = new Thread(safeCopy,"T8");
47
-        Thread monkeyAmy = new Thread(safeCopy,"T9");
48
-        Thread monkeyDan = new Thread(safeCopy,"T10");
44
+        Thread monkeyJoe = new Thread(safeCopy, "[6]");
45
+        Thread monkeyVince = new Thread(safeCopy, "[7]");
46
+        Thread monkeyKibret = new Thread(safeCopy,"[8]");
47
+        Thread monkeyAmy = new Thread(safeCopy,"[9]");
48
+        Thread monkeyDan = new Thread(safeCopy,"[10]");
49 49
 
50 50
         monkeyJoe.start();
51 51
         monkeyVince.start();