import java.util.*;
public class sortArray
{
     public static void main(String[] args)
    {
       double[] lengths = {120.0, 0.5, 0.0, 999.0, 77.3};
       Arrays.sort(lengths);
         System.out.println(Arrays.toString(lengths));
    }
}
?
Using the above code, what will be the output of the println statement when the code is executed?

What will be an ideal response?

The sort() method will arrange the array values as follows:?0.0, 0.5, 77.3, 120.0, 999.0

Computer Science & Information Technology

You might also like to view...

Which of the followings is the correct CSS syntax?

a. body {color:#000000}; b. body {color=#000000}; c. body: color=#000000; d. {body: color:#000000};

Computer Science & Information Technology

In an Excel chart, a group of related data points plotted in a chart is a(n) ________

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology