Question: User / * * Returns a list containing the common item of the two given lists * / public static List common ( List L

User
/** Returns a list containing the common item of the two given lists */
public static List common(List L1, List L2){
**Code here**
return null;
}
common: This method takes two lists List L1, List L2 and returns a new list containing the items present in both of the two given lists. If there are no common items, it should return an empty list.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!