Category: Problem Solving

Write a java program to manipulate ArrayLists

Write a program that performs the following actions: Read 2n integers as input. Create two arraylists to store n elements in each arraylist. Write a function generateOddEvenList which accepts this two arraylist as input. The function fetch the odd index elements from first array list and even index elements from second array list and add them to