Yes, ArrayList's element must be an Object. So, Integer was used.