Write a method in JAVA called void merge(LinkedList LL, boolean append) thattakes another linked list as a parameter, merges it with currentlinked list adding it after the original linked list if append istrue, else the new list should be added before the original linkedlist. The below figures demonstrates the concept:
Append is true Append is false Original new Last Last First First new Original
Write a method in JAVA called void merge(LinkedList LL, boolean append) that takes another linked list as a parameter,
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am