Question: Task 1 : Create two arrays and fill them with values:a . Use the following statement to create array 1 and array 2 with these
Task : Create two arrays and fill them with values:a Use the following statement to create array and array with these specific values:int array;int array; b Display the values in both arrays on consolec. Next move the values in the two arrays such that:i All the even values are in array and all the odd values are in array ii You must perform this task using ONLY the given arrays.iii. No additional data structures are allowed, but extra variables can be used. d Sort both arrays using the sort method in the Arrays class.e Display the values in both arrays to prove they are separated and sorted.f See the MUST DO AND TIPS section for more details and allowed assumptions for the two arrays.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
