結果 : java check if index exists in arraylist