Question: Paragraph 1. Research for API document of interface List. Which package does it belong to? What are known classes implementing this interface? What is the

Paragraph 1. Research for API document of interface List. Which package does it belong to? What are known classes implementing this interface? What is the method signature of method contains? (return type and parameters) What is the method signature of method size? (return type and parameters) Describe the usage of set method . . 2. Research utility classes Collections and Arrays. What methods in these classes you find most useful? Code writing exercise: 3. Suppose an ArrayList named plist is a list of Shakespeare plays. a) How do make a method call to get the size of the list? b) How do make a method call to get the 5th element of the list? c) How do make a method call to get the index of the play Henry V? d) Write a "for each loop" statament to print out play names 4. Initialize an ArrayList called cardList of type Card. 5. The list object numlist consists of Integer objects 3451 12 6 8 15 34 20 10 The program starts with the original nunList. List Integer> duplist new Arraylist Integerl ) Eex. (Integer unliat)( ,C ( k
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
