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 commonList L List L
Code here
return null;
common: This method takes two lists List L List L 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
