File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Resources on Generics and collections Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Resources on Generics and collections" Watch "Resources on Generics and collections" New topic
Author

Resources on Generics and collections

Jai Mani
Greenhorn

Joined: Sep 11, 2010
Posts: 23
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

Joined: Oct 13, 2005
Posts: 40052
    
  28
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

Joined: Jul 28, 2011
Posts: 23
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

Joined: Sep 11, 2010
Posts: 23
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Resources on Generics and collections