First thing's first, you never initialized list, so you'll get a null pointer even if it did run properly. Initialize it before you call the list.add(...) method.

Second, E is something called a:...