deborahsalinas3526 deborahsalinas3526
  • 25-02-2020
  • Computers and Technology
contestada

You have an int array named examScores that is 1000 elements in length. Provide a single line of code that would sort the examScores. (Note: You do not need to provide the import statements supporting the line of code)

Respuesta :

ijeggs
ijeggs ijeggs
  • 25-02-2020

Answer:

Arrays.sort(examScores);

Explanation:

The line of code above will sor the array using the sort method from the java.util.Arrays.

The complete java code showing the importation of the class as well as creating the array examScores[] with 1000 elements is shown below:

import java.util.Arrays;

public class num5 {

   public static void main(String[] args) {

     int [] examScores = new int[1000];

       Arrays.sort(examScores);

   }

}

Answer Link

Otras preguntas

if the measurements of a quadrilateral is67degrees 123 and 58 what is the missing the measurement of the otherangle​
Describe the graph that would be used to solve the equation -x2 + 4 = x + 2 using a system of equations. How will you use the graph to find the solution(s)?
What is the difference of the polynomials? M^2 n^2-7
What level of organization are humans? *. a. Organ b. Community c. Ecosystem d. Population
Calculate how far a jogger runs in 1.5 hours with an average speed of 2.22m/s
Plz explain Math question
p=2l+2w w=7 p=42 what is l
Write a paragraph that describes the path that one drop of water takes as it moves through the water cycle. In your paragraph, include at least two changes in t
The British empire gained a footing in India through the what?
Any of #13-16 please?!