質問編集履歴
2
誤字修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -88,19 +88,19 @@
|
|
88
88
|
|
89
89
|
private static ArrayList<MyCharaData> myCharaData;
|
90
90
|
|
91
|
-
private static String l
|
91
|
+
private static String ls = "", no = "", no_i = "", name = "", name_i = "", exp = "", ser = "", v = "", h = "", m = "", at = "", de = "", mt = "", me = "", al = "", ea = "";
|
92
92
|
|
93
93
|
|
94
94
|
|
95
95
|
public static void main(String[] args) {
|
96
96
|
|
97
|
-
myCharaData = new ArrayList<MyC
|
97
|
+
myCharaData = new ArrayList<MyCData>();
|
98
98
|
|
99
99
|
try {
|
100
100
|
|
101
101
|
//ファイル読込
|
102
102
|
|
103
|
-
FileReader fr = new FileReader("./src/MyC
|
103
|
+
FileReader fr = new FileReader("./src/MyCData.csv");
|
104
104
|
|
105
105
|
BufferedReader br = new BufferedReader(fr);
|
106
106
|
|
@@ -126,29 +126,29 @@
|
|
126
126
|
|
127
127
|
if(i == 2)no = token.nextToken();
|
128
128
|
|
129
|
-
if(i == 3)no_i
|
129
|
+
if(i == 3)no_i = token.nextToken();
|
130
130
|
|
131
131
|
if(i == 4)name = token.nextToken();
|
132
132
|
|
133
|
-
if(i == 5)name_i
|
133
|
+
if(i == 5)name_i = token.nextToken();
|
134
|
-
|
134
|
+
|
135
|
-
if(i == 6)exp
|
135
|
+
if(i == 6)exp = token.nextToken();
|
136
|
-
|
136
|
+
|
137
|
-
if(i == 7)ser
|
137
|
+
if(i == 7)ser = token.nextToken();
|
138
|
-
|
138
|
+
|
139
|
-
if(i == 8)
|
139
|
+
if(i == 8)v = token.nextToken();
|
140
|
-
|
140
|
+
|
141
|
-
if(i == 9)h
|
141
|
+
if(i == 9)h = token.nextToken();
|
142
|
-
|
142
|
+
|
143
|
-
if(i == 10)m
|
143
|
+
if(i == 10)m = token.nextToken();
|
144
|
-
|
144
|
+
|
145
|
-
if(i == 11)at
|
145
|
+
if(i == 11)at = token.nextToken();
|
146
|
-
|
146
|
+
|
147
|
-
if(i == 12)de
|
147
|
+
if(i == 12)de = token.nextToken();
|
148
|
-
|
148
|
+
|
149
|
-
if(i == 13)m
|
149
|
+
if(i == 13)mt = token.nextToken();
|
150
|
-
|
150
|
+
|
151
|
-
if(i == 14)m
|
151
|
+
if(i == 14)me = token.nextToken();
|
152
152
|
|
153
153
|
if(i == 15)agl = token.nextToken();
|
154
154
|
|
@@ -160,43 +160,43 @@
|
|
160
160
|
|
161
161
|
System.out.println("**********");
|
162
162
|
|
163
|
-
System.out.println(lis
|
163
|
+
System.out.println(lis);
|
164
164
|
|
165
165
|
System.out.println(no);
|
166
166
|
|
167
|
-
System.out.println(no_i
|
167
|
+
System.out.println(no_i);
|
168
168
|
|
169
169
|
System.out.println(name);
|
170
170
|
|
171
|
-
System.out.println(name_i
|
171
|
+
System.out.println(name_i);
|
172
|
-
|
172
|
+
|
173
|
-
System.out.println(exp
|
173
|
+
System.out.println(exp);
|
174
|
-
|
174
|
+
|
175
|
-
System.out.println(ser
|
175
|
+
System.out.println(ser);
|
176
|
-
|
176
|
+
|
177
|
-
System.out.println(
|
177
|
+
System.out.println(v);
|
178
|
-
|
178
|
+
|
179
|
-
System.out.println(h
|
179
|
+
System.out.println(h);
|
180
|
-
|
180
|
+
|
181
|
-
System.out.println(m
|
181
|
+
System.out.println(m);
|
182
|
-
|
182
|
+
|
183
|
-
System.out.println(at
|
183
|
+
System.out.println(at);
|
184
|
-
|
184
|
+
|
185
|
-
System.out.println(de
|
185
|
+
System.out.println(de);
|
186
|
-
|
186
|
+
|
187
|
-
System.out.println(m
|
187
|
+
System.out.println(mt);
|
188
|
-
|
188
|
+
|
189
|
-
System.out.println(m
|
189
|
+
System.out.println(me);
|
190
|
-
|
190
|
+
|
191
|
-
System.out.println(a
|
191
|
+
System.out.println(al);
|
192
|
-
|
192
|
+
|
193
|
-
System.out.println(e
|
193
|
+
System.out.println(ea);
|
194
|
-
|
195
|
-
|
196
|
-
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
-
myC
|
197
|
+
myCData.add(new MyCData(lis, no, no_i, name, name_i, exp, ser, v, h, m, at, de, mt, me, al, ea));//←ここで@で始まる値?になってます
|
198
|
-
|
198
|
+
|
199
|
-
MyC
|
199
|
+
MyCData data = myCData.get(myCData.size() - 1);
|
200
200
|
|
201
201
|
System.out.println(data);
|
202
202
|
|
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -194,9 +194,9 @@
|
|
194
194
|
|
195
195
|
|
196
196
|
|
197
|
-
myCharaData.add(new MyCharaData(list, no, no_img, name, name_img, explain, serif, lv, hp, mp, atk, def, mat, mde, agl, eva));
|
197
|
+
myCharaData.add(new MyCharaData(list, no, no_img, name, name_img, explain, serif, lv, hp, mp, atk, def, mat, mde, agl, eva));//←ここで@で始まる値?になってます
|
198
|
-
|
198
|
+
|
199
|
-
MyCharaData data = myCharaData.get(myCharaData.size() - 1);
|
199
|
+
MyCharaData data = myCharaData.get(myCharaData.size() - 1);
|
200
200
|
|
201
201
|
System.out.println(data);
|
202
202
|
|