It's not a secret anymore!
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
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
It's not a secret anymore!