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

9,12,15,18,21,? if the pattern continues, what number likely comes next?
What is the value of the expression |a+b|+|c| when a = –5, b = 8, and c = –13? a. –26 b. 0 c. 16 d. –10
77 __ 16is equivalent to a) 4   64          ----           52 b) 2    42            ---            13 c)    315        ------
Javiers grandmother lives 120 miles away. It takes 1 hour to travel 40 miles by train. If Javier leaves at 7am it is reasonable to say he will arrive in his gra
What may have been the most detrimental aspect of redrawing of territorial boundaries in Africa by Europeans?
0.65,0.59,3/5 least to greatest
The total number of people who visited the ocean adventure park last year was 7,040,836.what is the value of the digit 4 in this number
how to solve 3(x+5)=8x
round 90.69 to the nearest tenth
Sedentary people tended to pasture livestock from region to region. a. True b. False