質問編集履歴
2
スペルミスの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -86,7 +86,7 @@
|
|
86
86
|
|
87
87
|
java1がHumanクラス
|
88
88
|
|
89
|
-
java2が
|
89
|
+
java2が Dealerクラスです
|
90
90
|
|
91
91
|
|
92
92
|
|
1
コードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,11 +14,79 @@
|
|
14
14
|
|
15
15
|
|
16
16
|
|
17
|
+
```java1Human
|
18
|
+
|
19
|
+
java
|
20
|
+
|
21
|
+
package ブラックジャック2;
|
22
|
+
|
23
|
+
import java.util.ArrayList;
|
17
24
|
|
18
25
|
|
19
|
-
![イメージ説明](6eb47bb9fa573d41a4e9fe945bc3e52a.png)
|
20
26
|
|
27
|
+
abstract class Human {
|
28
|
+
|
29
|
+
public static void main(String[] args) {
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
}
|
36
|
+
|
37
|
+
public abstract int open();
|
38
|
+
|
39
|
+
public abstract void setCard(ArrayList<Integer> list);
|
40
|
+
|
21
|
-
|
41
|
+
public abstract boolean checkSun();
|
42
|
+
|
43
|
+
ArrayList<Integer> myCards= new ArrayList<Integer>();
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
}
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
```
|
54
|
+
|
55
|
+
```java2Dealer
|
56
|
+
|
57
|
+
package ブラックジャック2;
|
58
|
+
|
59
|
+
import java.util.ArrayList;
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
class Dealer extends Human{
|
64
|
+
|
65
|
+
public static void main(String[] args) {
|
66
|
+
|
67
|
+
}
|
68
|
+
|
69
|
+
ArrayList<Integer> cards = new ArrayList<Integer>();
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
public Dealer();
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
}
|
80
|
+
|
81
|
+
```
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
java1がHumanクラス
|
88
|
+
|
89
|
+
java2がHumanクラスです
|
22
90
|
|
23
91
|
|
24
92
|
|