why it produce output as 1,10,9 even though the element are already in ascending order
Created 1 year ago
38
Views
1
Comments
String[] nums = new String[] { "1", "9", "10" };
Arrays.sort(nums);
System.out.println(Arrays.toString(nums));