Question: Code a method in java called diffArList that: Takes two array lists of Strings arL1 & arL2 as input Returns a new array list contains
Code a method in java called diffArList that:
- Takes two array lists of Strings arL1 & arL2 as input
- Returns a new array list contains all the values of arL1 that cannot be found in arL2.
Notes
- you must not use any of these built-in methods: contains, lastIndexOf , indexOf.
- Your code should be efficient (i.e. exist loop if it meets a condition) and should use the appropriate loop pattern
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
