質問編集履歴

2

誤字修正

2016/07/06 12:15

投稿

takeji
takeji

スコア21

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 list = "", no = "", no_img = "", name = "", name_img = "", explain = "", serif = "", lv = "", hp = "", mp = "", atk = "", def = "", mat = "", mde = "", agl = "", eva = "";
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<MyCharaData>();
97
+ myCharaData = new ArrayList<MyCData>();
98
98
 
99
99
  try {
100
100
 
101
101
  //ファイル読込
102
102
 
103
- FileReader fr = new FileReader("./src/MyCharaData.csv");
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_img = token.nextToken();
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_img = token.nextToken();
133
+ if(i == 5)name_i = token.nextToken();
134
-
134
+
135
- if(i == 6)explain = token.nextToken();
135
+ if(i == 6)exp = token.nextToken();
136
-
136
+
137
- if(i == 7)serif = token.nextToken();
137
+ if(i == 7)ser = token.nextToken();
138
-
138
+
139
- if(i == 8)lv = token.nextToken();
139
+ if(i == 8)v = token.nextToken();
140
-
140
+
141
- if(i == 9)hp = token.nextToken();
141
+ if(i == 9)h = token.nextToken();
142
-
142
+
143
- if(i == 10)mp = token.nextToken();
143
+ if(i == 10)m = token.nextToken();
144
-
144
+
145
- if(i == 11)atk = token.nextToken();
145
+ if(i == 11)at = token.nextToken();
146
-
146
+
147
- if(i == 12)def = token.nextToken();
147
+ if(i == 12)de = token.nextToken();
148
-
148
+
149
- if(i == 13)mat = token.nextToken();
149
+ if(i == 13)mt = token.nextToken();
150
-
150
+
151
- if(i == 14)mde = token.nextToken();
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(list);
163
+ System.out.println(lis);
164
164
 
165
165
  System.out.println(no);
166
166
 
167
- System.out.println(no_img);
167
+ System.out.println(no_i);
168
168
 
169
169
  System.out.println(name);
170
170
 
171
- System.out.println(name_img);
171
+ System.out.println(name_i);
172
-
172
+
173
- System.out.println(explain);
173
+ System.out.println(exp);
174
-
174
+
175
- System.out.println(serif);
175
+ System.out.println(ser);
176
-
176
+
177
- System.out.println(lv);
177
+ System.out.println(v);
178
-
178
+
179
- System.out.println(hp);
179
+ System.out.println(h);
180
-
180
+
181
- System.out.println(mp);
181
+ System.out.println(m);
182
-
182
+
183
- System.out.println(atk);
183
+ System.out.println(at);
184
-
184
+
185
- System.out.println(def);
185
+ System.out.println(de);
186
-
186
+
187
- System.out.println(mat);
187
+ System.out.println(mt);
188
-
188
+
189
- System.out.println(mde);
189
+ System.out.println(me);
190
-
190
+
191
- System.out.println(agl);
191
+ System.out.println(al);
192
-
192
+
193
- System.out.println(eva);
193
+ System.out.println(ea);
194
-
195
-
196
-
194
+
195
+
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
+ 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
- MyCharaData data = myCharaData.get(myCharaData.size() - 1);
199
+ MyCData data = myCData.get(myCData.size() - 1);
200
200
 
201
201
  System.out.println(data);
202
202
 

1

誤字

2016/07/06 12:15

投稿

takeji
takeji

スコア21

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