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

Why did Teddy Roosevelt form the progressive Bull Moose party and run against Taft in 1912?
que son los derechos y deberes?​
Read this excerpt from The First Men in the Moon: I felt an enormous astonishment at the evaporation of the great fight into which I had hurled myself, and not
Write 2.673 × 10^4 as an ordinary number
I can use a little help please
A reduction of the oxygen supply to the brain due to a heart attack or stroke can result in an organic disorder. Please select the best answer from the choices
Solve for x 4 - ( 2x - 2) + 3x = 4(x + 5) - 3(x-2)-10
Can someone help solve this?
encontrar la fuerza de gravedad de una masa de 18g​
A train traveled 1/4 of the distance between two cities in 2/3 of an hour. at this rate, what fraction of the distance can the train travel in one hour