can anyone tell the glitch in the program
package com.codegym.task.task07.task0710;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
/*
To the top of the list
*/
public class Solution
{
public static void main(String[] args) throws Exception
{
BufferedReader obj = new BufferedReader(new InputStreamReader(System.in));
ArrayList<String> list = new ArrayList<String>();
list.add("dh");
for(int i=1;i<=10;i++)
{
String s=obj.readLine();
list.add(i,s);
}
for(int i=0;i<=10;i++)
{
System.out.println(list.get(i));
}//write your code here
}
}