回答編集履歴
1
edit
test
CHANGED
@@ -6,13 +6,9 @@
|
|
6
6
|
|
7
7
|
public static void main(String[] args) {
|
8
8
|
|
9
|
-
|
9
|
+
Result cal = new Result();
|
10
10
|
|
11
|
-
Result cal = new Result();
|
12
|
-
|
13
|
-
|
11
|
+
cal.display(cal.getArray());
|
14
|
-
|
15
|
-
}
|
16
12
|
|
17
13
|
}
|
18
14
|
|
@@ -30,21 +26,15 @@
|
|
30
26
|
|
31
27
|
int i = 0;
|
32
28
|
|
33
|
-
|
34
|
-
|
35
|
-
int[] getArray() {
|
29
|
+
public int[] getArray() {
|
36
|
-
|
37
|
-
|
38
30
|
|
39
31
|
int[] array = new int[11];
|
40
32
|
|
33
|
+
for(int i = 1;i < 11;i++){
|
41
34
|
|
35
|
+
array[i] = (i * 9);
|
42
36
|
|
43
|
-
for(int i = 1;i < 11;i++){
|
44
|
-
|
45
|
-
array[i] = (i * 9);
|
46
|
-
|
47
|
-
|
37
|
+
}
|
48
38
|
|
49
39
|
return array;
|
50
40
|
|
@@ -52,11 +42,9 @@
|
|
52
42
|
|
53
43
|
|
54
44
|
|
55
|
-
void display(int[] ar) {
|
45
|
+
public void display(int[] ar) {
|
56
46
|
|
57
|
-
|
58
|
-
|
59
|
-
|
47
|
+
System.out.print(ar);
|
60
48
|
|
61
49
|
}
|
62
50
|
|
@@ -74,13 +62,9 @@
|
|
74
62
|
|
75
63
|
public static void main(String[] args) {
|
76
64
|
|
77
|
-
|
65
|
+
Result cal = new Result();
|
78
66
|
|
79
|
-
Result cal = new Result();
|
80
|
-
|
81
|
-
|
67
|
+
cal.display();
|
82
|
-
|
83
|
-
}
|
84
68
|
|
85
69
|
}
|
86
70
|
|
@@ -106,17 +90,17 @@
|
|
106
90
|
|
107
91
|
public Result (){
|
108
92
|
|
109
|
-
|
93
|
+
for(int i = 1;i < 11;i++){
|
110
94
|
|
111
|
-
|
95
|
+
this.array[i] = (i * 9);
|
112
96
|
|
113
|
-
|
97
|
+
}
|
114
98
|
|
115
99
|
}
|
116
100
|
|
117
101
|
void display() {
|
118
102
|
|
119
|
-
|
103
|
+
System.out.print(this.array);
|
120
104
|
|
121
105
|
}
|
122
106
|
|