For what its worth its a warning and not an error. The collection you are using is not specified to hold any particular class...see Lesson: Generics (The Java™ Tutorials > Learning the Java Language)...