Question: What does this code output? A. [1, 9, 10] B. [1, 10, 9] C. [9, 1, 10] D. [9, 10, 1] E. [10, 1, 9]
What does this code output?
![String[] nums= new String[] { "1", "9", "10" }; Arrays.sort (nums); System.out.println](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1707/3/0/6/08965c36c6936ea01707306088934.jpg)
A. [1, 9, 10]
B. [1, 10, 9]
C. [9, 1, 10]
D. [9, 10, 1]
E. [10, 1, 9]
F. [10, 9, 1]
String[] nums= new String[] { "1", "9", "10" }; Arrays.sort (nums); System.out.println (Arrays.toString (nums));
Step by Step Solution
3.31 Rating (148 Votes )
There are 3 Steps involved in it
The code snippet you provided is written in Java The code initialize... View full answer
Get step-by-step solutions from verified subject matter experts
