Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Resources on Generics and collections

 
Jai Mani
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone ,

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

Any help will be greatly appriciated

Thank You
 
Campbell Ritchie
Sheriff
Pie
Posts: 50258
79
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
James E Baker
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just visited the tutorial that Campbell suggested and it's pretty good. I would also recommend it.

http://download.oracle.com/javase/tutorial/java/generics/generics.html

James
 
Jai Mani
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for pointing me in the right direction

I understand the concepts individualy but when their is a question that combines a fewd ifferent concepts I'm stumped
Although I will follow all the valuable advice given by the members

Thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic