
Exceptions are discussed
extensively in Chapter 11.
REFERENCE POINT
1026 CHAPTER 14 An Introduction to Data Structures
TABLE 14.3 PlayerLinkedList Methods
Methods of the PlayerLinkedList Class
Return value Method name and argument list
void insert( Player p )
inserts Player p at the beginning of the list
Player delete( int searchID )
returns and removes the first Player in the list with an ID
equal to searchID.If there is no such Player in the list,the
method throws a Data StructureException
Player peek( int searchID )
returns a copy of the first Player on the list whose ID is
equal to searchID. If there is no such Player in the list,the
method throws a