回答編集履歴
1
微修正
test
CHANGED
@@ -4,9 +4,9 @@
|
|
4
4
|
|
5
5
|
int N = 3;
|
6
6
|
|
7
|
-
SubThread[] threads = new SubThread[
|
7
|
+
SubThread[] threads = new SubThread[N];
|
8
8
|
|
9
|
-
for ( int i = 0; i <
|
9
|
+
for ( int i = 0; i < N; ++I ) {
|
10
10
|
|
11
11
|
threads[i] = new SubThread();
|
12
12
|
|