File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets 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?
 
Similar Threads
how to use add method for List (? extends Number)
K&B SJCP 5.0 Study Guide p. 634 - generics and collections question
Sierra/Bates, Chapter 7, Two Minute Section
warning: [unchecked] unchecked method invocation
Generic method signature help