This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes How far we can use Generics? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "How far we can use Generics?" Watch "How far we can use Generics?" New topic
Author

How far we can use Generics?

Anthony Karta
Ranch Hand

Joined: Aug 09, 2004
Posts: 342
I have un-finished code below. how to make it work (if possible)?

the idea is passing a list of type E and do sum up.



SCJP 5
Anthony Karta
Ranch Hand

Joined: Aug 09, 2004
Posts: 342
anyone have an idea?

thanks
 
 
subject: How far we can use Generics?