Question: In Java Exercise Serialize: 1. Create a list and fill it with 20 random numbers from this range: 110, 15, 20, 25, 30, 35, 40,
In Java


Exercise Serialize: 1. Create a list and fill it with 20 random numbers from this range: 110, 15, 20, 25, 30, 35, 40, 45, so) Seed the constructor of class Random with the value 19 (this way your output will match the output provided) Print the list Sort the numbers in the list. (the list is now modified) Then serialize the list to a file called NumberList.ser Deserialize the file into a new list called numbers2. Print it. Reposition the elements of numbers2 so that they are in random order (numbers2 is now modified). Print it again 2. 3. 4. S. Make the output look like the output provided Output: numbers : [35, 20, 35, 25, 15, 20, 50, 1e, se, 30, 30, 25, 1?, ??, ??, 10, 45, 25, 45, 28] numbers2: [1, 1, 1, 15, 20, 20, 2, 25, 25, 25, 3, 3, 3, 3, 35, 35, 45, 45, 5e, 50] numbers2: [2e, 5e, 45, 1, 30, 1, 25, 15, 5e, 3e, 35, 1e, 20, 3, 25, 45, 35, 3e, 2, 25]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
