This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Table 7-7, page 594 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Table 7-7, page 594" Watch "Table 7-7, page 594" New topic

Table 7-7, page 594

Kitty Liem

Joined: Oct 14, 2013
Posts: 2

The add(index, element) method for List returns nothing but table tells me boolean...
Chan Ag

Joined: Sep 06, 2012
Posts: 1089
Welcome to the Ranch.

This tells me the return type of the method is void. Where does it say the method is supposed to return a boolean?

Which book/source has the table/code in question?

Consider reading QuoteYourSources.

Siddharth Raja

Joined: Nov 11, 2013
Posts: 18
I think you are referring to K & B

yes, boolean add(index, element) is a mistake

its void add(index, element) ...this versio of add method is defined in the List interface only
my source (Herbert Schildt - the complete reference for Java 7th Edition)
Kitty Liem

Joined: Oct 14, 2013
Posts: 2

Sorry, should be in Compiling errata K&B topic...
I agree. Here's the link:
subject: Table 7-7, page 594
jQuery in Action, 3rd edition