Page 1 of 1

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
by answerhappygod
Part 1 Write A Method Called Equallists In A Class Called Compare The Method Accepts Three Arraylist Objects List1 L 1
Part 1 Write A Method Called Equallists In A Class Called Compare The Method Accepts Three Arraylist Objects List1 L 1 (32.47 KiB) Viewed 58 times
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 )