This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Table 7-7, page 594" Watch "Table 7-7, page 594" New topic
Author

Table 7-7, page 594

Kitty Liem
Greenhorn

Joined: Oct 14, 2013
Posts: 2

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

Joined: Sep 06, 2012
Posts: 1000
    
  16
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.

Chan.
Siddharth Raja
Greenhorn

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
Greenhorn

Joined: Oct 14, 2013
Posts: 2

Sorry, should be in Compiling errata K&B topic...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Table 7-7, page 594
 
Similar Threads
JDBC:SQL Exception no data found
count yourself in javaranch#~
Your lucky number
Pattern to retrieve data from multiple tables
when 400 mark will reach?