This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes confused about generics Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "confused about generics" Watch "confused about generics" New topic

confused about generics

Scott Sorensen

Joined: Mar 02, 2006
Posts: 3
well to be honest i just dont understand what they are or why u need them,,could anyone give a simple example of why u would want to use generics?
marc weber

Joined: Aug 31, 2004
Posts: 11343

Hi Scott, welcome to JavaRanch!

See if this Sun article on Generics helps answer your question.

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
There is also the Generics Tutorial that might be helpful.


Java API Documentation
The Java Tutorial
I agree. Here's the link:
subject: confused about generics