Question: I need help writing this code in java. Part 1 (5 pts) Create a new array that will be able to hold 10 values of
I need help writing this code in java.
Part 1 (5 pts) Create a new array that will be able to hold 10 values of type double. Populate the array with 10 random values. Display the contents of the array in the original order with a label. Then, sort the array, and display the contents once again, this time in sorted order, with a label (refer to Sample Output). Use loops where appropriate.

Sample Output Original order 0.838351432823708 0.2434072376851031 0.8963778227294061 0.9800523568562461 0.3404632558631875 0.18378960911617515 0.3303666298700283 0.9414661278854225 0.05215064888226473 0.24004908339977782 Sorted order 0.05215064888226473 0.18378960911617515 0.24004908339977782 0.24364072376851031 0.3303666298700283 0.3404632558631875 0.8383514328237608 0.8963778227294061 0.9414661278854225 0.9800523568562461
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
