So I have been trying to understand Generics and collections for a couple of weeks and It seems that every time I get something or the other wrong
Mostly the problem is with Generics (I just cant seem to understand its wired syntax and rule) . So I was wondering How everyone else
is learning Generics and if you have already got the hang of it what did you guys do and what resources did you use
Have you been through the Java™ Tutorials? There are generics sections (I think two) and a collections section.
Google for Angelika Langer Java Generics FAQ.
Write lots of code with generics and collections. That is the best way to understand it, by using it. Put things into Sets. Put things into Lists, Put things into Maps. Put things into Queues. Put things on Stacks. Get those things out again. Change those elements' state and see whether they vanish
Write lots of generic classes and generic methods.