回答編集履歴

1

誤記修正

2016/02/17 22:17

投稿

cateye
cateye

スコア6851

test CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  int n = new java.util.Scanner(System.in).nextInt();
26
26
 
27
- if( n >= 0 && n < list.length ){
27
+ if( n >= 0 && n < list.size()){
28
28
 
29
29
  list.remove(n); // n番目の要素を削除
30
30