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)