質問編集履歴
1
コードの実行例を追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -50,6 +50,14 @@
|
|
50
50
|
|
51
51
|
```
|
52
52
|
|
53
|
+
実行結果例↓(実行するたびに変わる)
|
54
|
+
|
55
|
+
```txt
|
56
|
+
|
57
|
+
*********************************************+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++************************++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++***********************************+*+*************************************************************************************************************************+***++++++++++++++*++++++++++++++**********************************************************************************************************************************+*+***************************************************************++++++++++++++++++++++++++++++++++++++++++++++++++*++*********************************************************************************************************************************************************************************************************************************************++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++***************************************++++++++++++++++++++++++++++++++++++++++++++++++***********************************+++++++**++**************++**++****+++******+++*****++++++**+++**++******++*****++**+++++***++++**++***++++++++++++++*********++***********+++**+++++++++**++******++*+++++++++++++***++++********++++++++****++**++**++++++**++************++**++****++**++++****++**++**++**++**++++++++++++++***++****++++++++**+++++********++++********+++++++++++++++***++++++**++**++*****++**++**++****+++++++++++++++++++++++++****+++++++++***++++*****+++++++++++++++******++******************++**++***************************************++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
58
|
+
|
59
|
+
```
|
60
|
+
|
53
61
|
|
54
62
|
|
55
63
|
上記のコードは、「*」と「+」を交互に表示するプログラムをしようと書いたコードです。しかし、synchronized文を上手く使うことができずに困っています。
|