The error tells you what's wrong: On line 10 you have a second template with the same name ElementType. Remove that. It should be fine for that error.
write the implementation of theoperator<<inside the class. The reason is that only Example<int> is instantiated. For whatever reason the compiler sees the declaration of operator<< but not the implementation when it's outside the class and not used inside.