Part #1: Write a method called equallists in a class called compare. The method accepts three ArrayList objects list1, l
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Part #1: Write a method called equallists in a class called compare. The method accepts three ArrayList objects list1, l
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 )
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!