Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In Java Exercise Serialize: 1. Create a list and fill it with 20 random numbers

ID: 3720899 • Letter: I

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, 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]

Explanation / Answer

Hi Friend, As per the chegg guideline, please post one question per post.

I have implemented Q2.

Output:

[1, 2, 3, 4, 5, 6, 7, 8, 9]
[1, 3, 5, 7, 9]

Process finished with exit code 0

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote