質問編集履歴

3

訂正

2016/09/08 08:49

投稿

syosinsya12
syosinsya12

スコア69

test CHANGED
File without changes
test CHANGED
@@ -132,6 +132,36 @@
132
132
 
133
133
 
134
134
 
135
+
136
+
137
+ SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(Result.this);
138
+
139
+
140
+
141
+ highScore1_1 = preferences.getInt("highscore1_1", 0);
142
+
143
+ highScore1_2 = preferences.getInt("highscore1_2", 0);
144
+
145
+ highScore1_3 = preferences.getInt("highscore1_3", 0);
146
+
147
+ highScore1_4 = preferences.getInt("highscore1_4", 0);
148
+
149
+ highScore1_5 = preferences.getInt("highscore1_5", 0);
150
+
151
+ highScore1_6 = preferences.getInt("highscore1_6", 0);
152
+
153
+ highScore1_7 = preferences.getInt("highscore1_7", 0);
154
+
155
+ highScore1_8 = preferences.getInt("highscore1_8", 0);
156
+
157
+ highScore1_9 = preferences.getInt("highscore1_9", 0);
158
+
159
+ highScore1_10 = preferences.getInt("highscore1_10", 0);
160
+
161
+
162
+
163
+
164
+
135
165
  if (highScore1_1 < score1) {
136
166
 
137
167
  highScore1_10 = highScore1_9;
@@ -284,11 +314,129 @@
284
314
 
285
315
 
286
316
 
287
-
317
+ SharedPreferences.Editor editor = preferences.edit();
318
+
319
+
320
+
288
-
321
+ editor.putInt("highscore1_1", highScore1_1);
322
+
323
+ editor.putInt("highscore1_2", highScore1_2);
324
+
325
+ editor.putInt("highscore1_3", highScore1_3);
326
+
327
+ editor.putInt("highscore1_4", highScore1_4);
328
+
329
+ editor.putInt("highscore1_5", highScore1_5);
330
+
331
+ editor.putInt("highscore1_6", highScore1_6);
332
+
333
+ editor.putInt("highscore1_7", highScore1_7);
334
+
335
+ editor.putInt("highscore1_8", highScore1_8);
336
+
337
+ editor.putInt("highscore1_9", highScore1_9);
338
+
339
+ editor.putInt("highscore1_10", highScore1_10);
340
+
341
+ editor.commit();
342
+
343
+ }
344
+
345
+
346
+
347
+
348
+
349
+ コード
350
+
351
+ ```
352
+
353
+ ```
354
+
355
+
356
+
357
+ public class HighScore extends AppCompatActivity {
358
+
359
+
360
+
361
+ int highScore1_1;
362
+
363
+ int highScore1_2;
364
+
365
+ int highScore1_3;
366
+
367
+ int highScore1_4;
368
+
369
+ int highScore1_5;
370
+
371
+ int highScore1_6;
372
+
373
+ int highScore1_7;
374
+
375
+ int highScore1_8;
376
+
377
+ int highScore1_9;
378
+
379
+ int highScore1_10;
380
+
381
+
382
+
383
+ int highScore2_1;
384
+
385
+ int highScore2_2;
386
+
387
+ int highScore2_3;
388
+
389
+ int highScore2_4;
390
+
391
+ int highScore2_5;
392
+
393
+ int highScore2_6;
394
+
395
+ int highScore2_7;
396
+
397
+ int highScore2_8;
398
+
399
+ int highScore2_9;
400
+
401
+ int highScore2_10;
402
+
403
+
404
+
405
+ int highScore3_1;
406
+
407
+ int highScore3_2;
408
+
409
+ int highScore3_3;
410
+
411
+ int highScore3_4;
412
+
413
+ int highScore3_5;
414
+
415
+ int highScore3_6;
416
+
417
+ int highScore3_7;
418
+
419
+ int highScore3_8;
420
+
421
+ int highScore3_9;
422
+
423
+ int highScore3_10;
424
+
425
+
426
+
427
+ @Override
428
+
429
+ protected void onCreate(Bundle savedInstanceState) {
430
+
431
+ super.onCreate(savedInstanceState);
432
+
433
+ setContentView(R.layout.activity_high_score);
434
+
435
+
436
+
437
+
438
+
289
- SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(Result.this);
439
+ SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
290
-
291
-
292
440
 
293
441
  highScore1_1 = preferences.getInt("highscore1_1", 0);
294
442
 
@@ -312,200 +460,54 @@
312
460
 
313
461
 
314
462
 
315
- SharedPreferences.Editor editor = preferences.edit();
463
+ TextView highScore1 = (TextView)findViewById(R.id.highScore1);
464
+
316
-
465
+ TextView highScore2 = (TextView)findViewById(R.id.highScore2);
466
+
317
-
467
+ TextView highScore3 = (TextView)findViewById(R.id.highScore3);
468
+
318
-
469
+ TextView highScore4 = (TextView)findViewById(R.id.highScore4);
470
+
471
+ TextView highScore5 = (TextView)findViewById(R.id.highScore5);
472
+
473
+ TextView highScore6 = (TextView)findViewById(R.id.highScore6);
474
+
475
+ TextView highScore7 = (TextView)findViewById(R.id.highScore7);
476
+
477
+ TextView highScore8 = (TextView)findViewById(R.id.highScore8);
478
+
479
+ TextView highScore9 = (TextView)findViewById(R.id.highScore9);
480
+
481
+ TextView highScore10 = (TextView)findViewById(R.id.highScore10);
482
+
483
+
484
+
319
- editor.putInt("highscore1_1", highScore1_1);
485
+ highScore1.setText(String.valueOf(highScore1_1));
320
-
486
+
321
- editor.putInt("highscore1_2", highScore1_2);
487
+ highScore2.setText(String.valueOf(highScore1_2));
322
-
488
+
323
- editor.putInt("highscore1_3", highScore1_3);
489
+ highScore3.setText(String.valueOf(highScore1_3));
324
-
490
+
325
- editor.putInt("highscore1_4", highScore1_4);
491
+ highScore4.setText(String.valueOf(highScore1_4));
326
-
492
+
327
- editor.putInt("highscore1_5", highScore1_5);
493
+ highScore5.setText(String.valueOf(highScore1_5));
328
-
494
+
329
- editor.putInt("highscore1_6", highScore1_6);
495
+ highScore6.setText(String.valueOf(highScore1_6));
330
-
496
+
331
- editor.putInt("highscore1_7", highScore1_7);
497
+ highScore7.setText(String.valueOf(highScore1_7));
332
-
498
+
333
- editor.putInt("highscore1_8", highScore1_8);
499
+ highScore8.setText(String.valueOf(highScore1_8));
334
-
500
+
335
- editor.putInt("highscore1_9", highScore1_9);
501
+ highScore9.setText(String.valueOf(highScore1_9));
336
-
502
+
337
- editor.putInt("highscore1_10", highScore1_10);
503
+ highScore10.setText(String.valueOf(highScore1_10));
338
-
339
- editor.commit();
340
504
 
341
505
  }
342
506
 
343
-
507
+ }
344
508
 
345
509
 
346
510
 
347
511
  コード
348
512
 
349
513
  ```
350
-
351
- ```
352
-
353
-
354
-
355
- public class HighScore extends AppCompatActivity {
356
-
357
-
358
-
359
- int highScore1_1;
360
-
361
- int highScore1_2;
362
-
363
- int highScore1_3;
364
-
365
- int highScore1_4;
366
-
367
- int highScore1_5;
368
-
369
- int highScore1_6;
370
-
371
- int highScore1_7;
372
-
373
- int highScore1_8;
374
-
375
- int highScore1_9;
376
-
377
- int highScore1_10;
378
-
379
-
380
-
381
- int highScore2_1;
382
-
383
- int highScore2_2;
384
-
385
- int highScore2_3;
386
-
387
- int highScore2_4;
388
-
389
- int highScore2_5;
390
-
391
- int highScore2_6;
392
-
393
- int highScore2_7;
394
-
395
- int highScore2_8;
396
-
397
- int highScore2_9;
398
-
399
- int highScore2_10;
400
-
401
-
402
-
403
- int highScore3_1;
404
-
405
- int highScore3_2;
406
-
407
- int highScore3_3;
408
-
409
- int highScore3_4;
410
-
411
- int highScore3_5;
412
-
413
- int highScore3_6;
414
-
415
- int highScore3_7;
416
-
417
- int highScore3_8;
418
-
419
- int highScore3_9;
420
-
421
- int highScore3_10;
422
-
423
-
424
-
425
- @Override
426
-
427
- protected void onCreate(Bundle savedInstanceState) {
428
-
429
- super.onCreate(savedInstanceState);
430
-
431
- setContentView(R.layout.activity_high_score);
432
-
433
-
434
-
435
-
436
-
437
- SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
438
-
439
- highScore1_1 = preferences.getInt("highscore1_1", 0);
440
-
441
- highScore1_2 = preferences.getInt("highscore1_2", 0);
442
-
443
- highScore1_3 = preferences.getInt("highscore1_3", 0);
444
-
445
- highScore1_4 = preferences.getInt("highscore1_4", 0);
446
-
447
- highScore1_5 = preferences.getInt("highscore1_5", 0);
448
-
449
- highScore1_6 = preferences.getInt("highscore1_6", 0);
450
-
451
- highScore1_7 = preferences.getInt("highscore1_7", 0);
452
-
453
- highScore1_8 = preferences.getInt("highscore1_8", 0);
454
-
455
- highScore1_9 = preferences.getInt("highscore1_9", 0);
456
-
457
- highScore1_10 = preferences.getInt("highscore1_10", 0);
458
-
459
-
460
-
461
- TextView highScore1 = (TextView)findViewById(R.id.highScore1);
462
-
463
- TextView highScore2 = (TextView)findViewById(R.id.highScore2);
464
-
465
- TextView highScore3 = (TextView)findViewById(R.id.highScore3);
466
-
467
- TextView highScore4 = (TextView)findViewById(R.id.highScore4);
468
-
469
- TextView highScore5 = (TextView)findViewById(R.id.highScore5);
470
-
471
- TextView highScore6 = (TextView)findViewById(R.id.highScore6);
472
-
473
- TextView highScore7 = (TextView)findViewById(R.id.highScore7);
474
-
475
- TextView highScore8 = (TextView)findViewById(R.id.highScore8);
476
-
477
- TextView highScore9 = (TextView)findViewById(R.id.highScore9);
478
-
479
- TextView highScore10 = (TextView)findViewById(R.id.highScore10);
480
-
481
-
482
-
483
- highScore1.setText(String.valueOf(highScore1_1));
484
-
485
- highScore2.setText(String.valueOf(highScore1_2));
486
-
487
- highScore3.setText(String.valueOf(highScore1_3));
488
-
489
- highScore4.setText(String.valueOf(highScore1_4));
490
-
491
- highScore5.setText(String.valueOf(highScore1_5));
492
-
493
- highScore6.setText(String.valueOf(highScore1_6));
494
-
495
- highScore7.setText(String.valueOf(highScore1_7));
496
-
497
- highScore8.setText(String.valueOf(highScore1_8));
498
-
499
- highScore9.setText(String.valueOf(highScore1_9));
500
-
501
- highScore10.setText(String.valueOf(highScore1_10));
502
-
503
- }
504
-
505
- }
506
-
507
-
508
-
509
- コード
510
-
511
- ```

2

訂正

2016/09/08 08:48

投稿

syosinsya12
syosinsya12

スコア69

test CHANGED
File without changes
test CHANGED
@@ -288,8 +288,34 @@
288
288
 
289
289
  SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(Result.this);
290
290
 
291
+
292
+
293
+ highScore1_1 = preferences.getInt("highscore1_1", 0);
294
+
295
+ highScore1_2 = preferences.getInt("highscore1_2", 0);
296
+
297
+ highScore1_3 = preferences.getInt("highscore1_3", 0);
298
+
299
+ highScore1_4 = preferences.getInt("highscore1_4", 0);
300
+
301
+ highScore1_5 = preferences.getInt("highscore1_5", 0);
302
+
303
+ highScore1_6 = preferences.getInt("highscore1_6", 0);
304
+
305
+ highScore1_7 = preferences.getInt("highscore1_7", 0);
306
+
307
+ highScore1_8 = preferences.getInt("highscore1_8", 0);
308
+
309
+ highScore1_9 = preferences.getInt("highscore1_9", 0);
310
+
311
+ highScore1_10 = preferences.getInt("highscore1_10", 0);
312
+
313
+
314
+
291
315
  SharedPreferences.Editor editor = preferences.edit();
292
316
 
317
+
318
+
293
319
  editor.putInt("highscore1_1", highScore1_1);
294
320
 
295
321
  editor.putInt("highscore1_2", highScore1_2);

1

訂正

2016/09/08 08:39

投稿

syosinsya12
syosinsya12

スコア69

test CHANGED
File without changes
test CHANGED
@@ -14,69 +14,77 @@
14
14
 
15
15
 
16
16
 
17
- int highScore1_1 = 0;
18
-
19
- int highScore1_2 = 0;
20
-
21
- int highScore1_3 = 0;
22
-
23
- int highScore1_4 = 0;
24
-
25
- int highScore1_5 = 0;
26
-
27
- int highScore1_6 = 0;
28
-
29
- int highScore1_7 = 0;
30
-
31
- int highScore1_8 = 0;
32
-
33
- int highScore1_9 = 0;
34
-
35
- int highScore1_10 = 0;
36
-
37
-
38
-
39
- int highScore2_1 = 0;
40
-
41
- int highScore2_2 = 0;
42
-
43
- int highScore2_3 = 0;
44
-
45
- int highScore2_4 = 0;
46
-
47
- int highScore2_5 = 0;
48
-
49
- int highScore2_6 = 0;
50
-
51
- int highScore2_7 = 0;
52
-
53
- int highScore2_8 = 0;
54
-
55
- int highScore2_9 = 0;
56
-
57
- int highScore2_10 = 0;
58
-
59
-
60
-
61
- int highScore3_1 = 0;
62
-
63
- int highScore3_2 = 0;
64
-
65
- int highScore3_3 = 0;
66
-
67
- int highScore3_4 = 0;
68
-
69
- int highScore3_5 = 0;
70
-
71
- int highScore3_6 = 0;
72
-
73
- int highScore3_7 = 0;
74
-
75
- int highScore3_8 = 0;
76
-
77
- int highScore3_9 = 0;
78
-
79
- int highScore3_10 = 0;
17
+ int highScore1_1;
18
+
19
+ int highScore1_2;
20
+
21
+ int highScore1_3;
22
+
23
+ int highScore1_4;
24
+
25
+ int highScore1_5;
26
+
27
+ int highScore1_6;
28
+
29
+ int highScore1_7;
30
+
31
+ int highScore1_8;
32
+
33
+ int highScore1_9;
34
+
35
+ int highScore1_10 ;
36
+
37
+
38
+
39
+ int highScore2_1;
40
+
41
+ int highScore2_2;
42
+
43
+ int highScore2_3;
44
+
45
+ int highScore2_4;
46
+
47
+ int highScore2_5;
48
+
49
+ int highScore2_6;
50
+
51
+ int highScore2_7;
52
+
53
+ int highScore2_8;
54
+
55
+ int highScore2_9;
56
+
57
+ int highScore2_10;
58
+
59
+
60
+
61
+ int highScore3_1;
62
+
63
+ int highScore3_2;
64
+
65
+ int highScore3_3;
66
+
67
+ int highScore3_4;
68
+
69
+ int highScore3_5;
70
+
71
+ int highScore3_6;
72
+
73
+ int highScore3_7;
74
+
75
+ int highScore3_8;
76
+
77
+ int highScore3_9;
78
+
79
+ int highScore3_10;
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+ boolean back;
80
88
 
81
89
 
82
90
 
@@ -126,116 +134,116 @@
126
134
 
127
135
  if (highScore1_1 < score1) {
128
136
 
137
+ highScore1_10 = highScore1_9;
138
+
139
+ highScore1_9 = highScore1_8;
140
+
141
+ highScore1_8 = highScore1_7;
142
+
143
+ highScore1_7 = highScore1_6;
144
+
145
+ highScore1_6 = highScore1_5;
146
+
147
+ highScore1_5 = highScore1_4;
148
+
149
+ highScore1_4 = highScore1_3;
150
+
151
+ highScore1_3 = highScore1_2;
152
+
153
+ highScore1_2 = highScore1_1;
154
+
129
155
  highScore1_1 = score1;
130
156
 
157
+
158
+
159
+ } else if (highScore1_2 < score1 && score1 <= highScore1_1) {
160
+
161
+ highScore1_10 = highScore1_9;
162
+
131
- highScore1_2 = highScore1_1;
163
+ highScore1_9 = highScore1_8;
164
+
165
+ highScore1_8 = highScore1_7;
166
+
167
+ highScore1_7 = highScore1_6;
168
+
169
+ highScore1_6 = highScore1_5;
170
+
171
+ highScore1_5 = highScore1_4;
172
+
173
+ highScore1_4 = highScore1_3;
132
174
 
133
175
  highScore1_3 = highScore1_2;
134
176
 
177
+ highScore1_2 = score1;
178
+
179
+
180
+
181
+ } else if (highScore1_3 < score1 && score1 <= highScore1_2) {
182
+
183
+ highScore1_10 = highScore1_9;
184
+
185
+ highScore1_9 = highScore1_8;
186
+
187
+ highScore1_8 = highScore1_7;
188
+
189
+ highScore1_7 = highScore1_6;
190
+
191
+ highScore1_6 = highScore1_5;
192
+
193
+ highScore1_5 = highScore1_4;
194
+
135
195
  highScore1_4 = highScore1_3;
136
196
 
197
+ highScore1_3 = score1;
198
+
199
+
200
+
201
+ }else if (highScore1_4 < score1 && score1 <= highScore1_3){
202
+
203
+ highScore1_10 = highScore1_9;
204
+
205
+ highScore1_9 = highScore1_8;
206
+
207
+ highScore1_8 = highScore1_7;
208
+
209
+ highScore1_7 = highScore1_6;
210
+
211
+ highScore1_6 = highScore1_5;
212
+
137
213
  highScore1_5 = highScore1_4;
138
214
 
215
+ highScore1_4 = score1;
216
+
217
+
218
+
219
+ }else if (highScore1_5 < score1 && score1 <= highScore1_4){
220
+
221
+ highScore1_10 = highScore1_9;
222
+
223
+ highScore1_9 = highScore1_8;
224
+
225
+ highScore1_8 = highScore1_7;
226
+
227
+ highScore1_7 = highScore1_6;
228
+
139
229
  highScore1_6 = highScore1_5;
140
230
 
141
- highScore1_7 = highScore1_6;
142
-
143
- highScore1_8 = highScore1_7;
144
-
145
- highScore1_9 = highScore1_8;
146
-
147
- highScore1_10 = highScore1_9;
148
-
149
-
150
-
151
- } else if (highScore1_2 < score1 && score1 <= highScore1_1) {
152
-
153
- highScore1_2 = score1;
154
-
155
- highScore1_3 = highScore1_2;
156
-
157
- highScore1_4 = highScore1_3;
158
-
159
- highScore1_5 = highScore1_4;
160
-
161
- highScore1_6 = highScore1_5;
162
-
163
- highScore1_7 = highScore1_6;
164
-
165
- highScore1_8 = highScore1_7;
166
-
167
- highScore1_9 = highScore1_8;
168
-
169
- highScore1_10 = highScore1_9;
170
-
171
-
172
-
173
- } else if (highScore1_3 < score1 && score1 <= highScore1_2) {
174
-
175
- highScore1_3 = score1;
176
-
177
- highScore1_4 = highScore1_3;
178
-
179
- highScore1_5 = highScore1_4;
180
-
181
- highScore1_6 = highScore1_5;
182
-
183
- highScore1_7 = highScore1_6;
184
-
185
- highScore1_8 = highScore1_7;
186
-
187
- highScore1_9 = highScore1_8;
188
-
189
- highScore1_10 = highScore1_9;
190
-
191
-
192
-
193
- }else if (highScore1_4 < score1 && score1 <= highScore1_3){
194
-
195
- highScore1_4 = score1;
196
-
197
- highScore1_5 = highScore1_4;
198
-
199
- highScore1_6 = highScore1_5;
200
-
201
- highScore1_7 = highScore1_6;
202
-
203
- highScore1_8 = highScore1_7;
204
-
205
- highScore1_9 = highScore1_8;
206
-
207
- highScore1_10 = highScore1_9;
208
-
209
-
210
-
211
- }else if (highScore1_5 < score1 && score1 <= highScore1_4){
212
-
213
231
  highScore1_5 = score1;
214
232
 
215
- highScore1_6 = highScore1_5;
216
-
217
- highScore1_7 = highScore1_6;
218
-
219
- highScore1_8 = highScore1_7;
220
-
221
- highScore1_9 = highScore1_8;
222
-
223
- highScore1_10 = highScore1_9;
224
-
225
233
 
226
234
 
227
235
  }else if (highScore1_6 < score1 && score1 <= highScore1_5){
228
236
 
237
+ highScore1_10 = highScore1_9;
238
+
239
+ highScore1_9 = highScore1_8;
240
+
241
+ highScore1_8 = highScore1_7;
242
+
243
+ highScore1_7 = highScore1_6;
244
+
229
245
  highScore1_6 = score1;
230
246
 
231
- highScore1_7 = highScore1_6;
232
-
233
- highScore1_8 = highScore1_7;
234
-
235
- highScore1_9 = highScore1_8;
236
-
237
- highScore1_10 = highScore1_9;
238
-
239
247
 
240
248
 
241
249
  }else if (highScore1_7 < score1 && score1 <= highScore1_6){
@@ -252,20 +260,20 @@
252
260
 
253
261
  }else if (highScore1_8 < score1 && score1 <= highScore1_7){
254
262
 
263
+ highScore1_9 = highScore1_8;
264
+
265
+ highScore1_10 = highScore1_9;
266
+
255
267
  highScore1_8 = score1;
256
268
 
257
- highScore1_9 = highScore1_8;
258
-
259
- highScore1_10 = highScore1_9;
260
-
261
269
 
262
270
 
263
271
  }else if (highScore1_9 < score1 && score1 <= highScore1_8){
264
272
 
273
+ highScore1_10 = highScore1_9;
274
+
265
275
  highScore1_9 = score1;
266
276
 
267
- highScore1_10 = highScore1_9;
268
-
269
277
 
270
278
 
271
279
  }else if (highScore1_10 < score1 && score1 <= highScore1_9){
@@ -306,6 +314,10 @@
306
314
 
307
315
  }
308
316
 
317
+
318
+
319
+
320
+
309
321
  コード
310
322
 
311
323
  ```
@@ -318,69 +330,69 @@
318
330
 
319
331
 
320
332
 
321
- int highScore1_1 = 0;
322
-
323
- int highScore1_2 = 0;
324
-
325
- int highScore1_3 = 0;
326
-
327
- int highScore1_4 = 0;
328
-
329
- int highScore1_5 = 0;
330
-
331
- int highScore1_6 = 0;
332
-
333
- int highScore1_7 = 0;
334
-
335
- int highScore1_8 = 0;
336
-
337
- int highScore1_9 = 0;
338
-
339
- int highScore1_10 = 0;
340
-
341
-
342
-
343
- int highScore2_1 = 0;
344
-
345
- int highScore2_2 = 0;
346
-
347
- int highScore2_3 = 0;
348
-
349
- int highScore2_4 = 0;
350
-
351
- int highScore2_5 = 0;
352
-
353
- int highScore2_6 = 0;
354
-
355
- int highScore2_7 = 0;
356
-
357
- int highScore2_8 = 0;
358
-
359
- int highScore2_9 = 0;
360
-
361
- int highScore2_10 = 0;
362
-
363
-
364
-
365
- int highScore3_1 = 0;
366
-
367
- int highScore3_2 = 0;
368
-
369
- int highScore3_3 = 0;
370
-
371
- int highScore3_4 = 0;
372
-
373
- int highScore3_5 = 0;
374
-
375
- int highScore3_6 = 0;
376
-
377
- int highScore3_7 = 0;
378
-
379
- int highScore3_8 = 0;
380
-
381
- int highScore3_9 = 0;
382
-
383
- int highScore3_10 = 0;
333
+ int highScore1_1;
334
+
335
+ int highScore1_2;
336
+
337
+ int highScore1_3;
338
+
339
+ int highScore1_4;
340
+
341
+ int highScore1_5;
342
+
343
+ int highScore1_6;
344
+
345
+ int highScore1_7;
346
+
347
+ int highScore1_8;
348
+
349
+ int highScore1_9;
350
+
351
+ int highScore1_10;
352
+
353
+
354
+
355
+ int highScore2_1;
356
+
357
+ int highScore2_2;
358
+
359
+ int highScore2_3;
360
+
361
+ int highScore2_4;
362
+
363
+ int highScore2_5;
364
+
365
+ int highScore2_6;
366
+
367
+ int highScore2_7;
368
+
369
+ int highScore2_8;
370
+
371
+ int highScore2_9;
372
+
373
+ int highScore2_10;
374
+
375
+
376
+
377
+ int highScore3_1;
378
+
379
+ int highScore3_2;
380
+
381
+ int highScore3_3;
382
+
383
+ int highScore3_4;
384
+
385
+ int highScore3_5;
386
+
387
+ int highScore3_6;
388
+
389
+ int highScore3_7;
390
+
391
+ int highScore3_8;
392
+
393
+ int highScore3_9;
394
+
395
+ int highScore3_10;
384
396
 
385
397
 
386
398
 
@@ -398,25 +410,25 @@
398
410
 
399
411
  SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
400
412
 
401
- highScore1_1 = preferences.getInt("hiscore1_1", 0);
413
+ highScore1_1 = preferences.getInt("highscore1_1", 0);
402
-
414
+
403
- highScore1_2 = preferences.getInt("hiscore1_2", 0);
415
+ highScore1_2 = preferences.getInt("highscore1_2", 0);
404
-
416
+
405
- highScore1_3 = preferences.getInt("hiscore1_3", 0);
417
+ highScore1_3 = preferences.getInt("highscore1_3", 0);
406
-
418
+
407
- highScore1_4 = preferences.getInt("hiscore1_4", 0);
419
+ highScore1_4 = preferences.getInt("highscore1_4", 0);
408
-
420
+
409
- highScore1_5 = preferences.getInt("hiscore1_5", 0);
421
+ highScore1_5 = preferences.getInt("highscore1_5", 0);
410
-
422
+
411
- highScore1_6 = preferences.getInt("hiscore1_6", 0);
423
+ highScore1_6 = preferences.getInt("highscore1_6", 0);
412
-
424
+
413
- highScore1_7 = preferences.getInt("hiscore1_7", 0);
425
+ highScore1_7 = preferences.getInt("highscore1_7", 0);
414
-
426
+
415
- highScore1_8 = preferences.getInt("hiscore1_8", 0);
427
+ highScore1_8 = preferences.getInt("highscore1_8", 0);
416
-
428
+
417
- highScore1_9 = preferences.getInt("hiscore1_9", 0);
429
+ highScore1_9 = preferences.getInt("highscore1_9", 0);
418
-
430
+
419
- highScore1_10 = preferences.getInt("hiscore1_10", 0);
431
+ highScore1_10 = preferences.getInt("highscore1_10", 0);
420
432
 
421
433
 
422
434
 
@@ -466,6 +478,8 @@
466
478
 
467
479
  }
468
480
 
481
+
482
+
469
483
  コード
470
484
 
471
485
  ```