Possible Duplicate:
Storing primitive values in a Java collection?
ArrayList accepts only reference types as its element, not primitive datatypes. When trying to do so it produces a compile time error.
What is the concept behind this? It seems like a limitation, is it not?