Part #1: Write a method called equallists in a class called compare. The method accepts three ArrayList objects list1, l
Posted: Thu Jul 14, 2022 2:13 pm
Part #1: Write a method called equallists in a class called compare. The method accepts three ArrayList objects list1, list2 and list3 of type ArrayList as parameters. The list3 is to be generated by compare the list 1 and list 2 by the method, if both lists list1 items and list2 items are equal then write 1 in the same index in list3, else write 0 public class compare { public static <E> boolean equallists ( ArrayList <E> Iist1, ArrayList <E> Iist2, ArrayList <E> list 3 )