Ask Question
22 December, 22:43

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)

+1
Answers (1)
  1. 22 December, 22:51
    0
    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);

    }

    }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “You have an int array named examScores that is 1000 elements in length. Provide a single line of code that would sort the examScores. ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers