CODING:
import java.util.Arrays;
class SortArry
{
public static void main(String[] args)
{
int[] a={66,45,88,61,50,56,28,71,39,82};
System.out.println("Before Sorting Array:" + Arrays.toString(a))
Arrays.sort(a);
System.out.printf("After Sorting Array :" + Arrays.toString(a));
}
}
class SortArry
{
public static void main(String[] args)
{
int[] a={66,45,88,61,50,56,28,71,39,82};
System.out.println("Before Sorting Array:" + Arrays.toString(a))
Arrays.sort(a);
System.out.printf("After Sorting Array :" + Arrays.toString(a));
}
}
Comments
Post a Comment