Java method to check if integers in list are contained in another list of a list of integers
- 阅读更多 关于 Java method to check if integers in list are contained in another list of a list of integers
问题 *To preface, I posted a similar question but this time, the output I want is going to be different. Suppose we have a person named Bob, and he has a list of integers he wrote down: bobList = [10, 25, 30, 50] Say there are 3 other lists of random integers that was generated by a system and put into 1 master list: list1 = [1, 10, 20, 25, 33, 55] list2 = [2, 3, 5, 6, 9, 30] list3 = [25, 30, 50, 100] List<List<Integer>> masterList = new ArrayList<>() masterList.add(list1) masterList.add(list2)