?
What will be the output of the given Java code?
What will be the output of the given Java code?
import java.util.Arrays;
public class SortExample
{
public static void main(String[] args)
{
int[] arr = {10,7,9,5,8,4};
Arrays.sort(arr, 1, 3);
System.out.printf(Arrays.toString(arr));
}
}
import java.util.Arrays;
public class SortExample
{
public static void main(String[] args)
{
int[] arr = {10,7,9,5,8,4};
Arrays.sort(arr, 1, 3);
System.out.printf(Arrays.toString(arr));
}
}
Join the Discussion
Login to post a comment or share your explanation.
Login