Imagine the user enters a list of integers. First, split the array into sub-arrays of odd and even numbers,
and then glue these two arrays back together and return the result. For example, if the user entered
[1, 8, 5, 7, 2, 4, 4, 5] , you would return the list [1, 5, 7, 5, 8, 2, 4, 4] .Please do not use any Java code or libraries that we have not covered in class; this defeats the purpose of the assessment. |