import java.util.Arrays;public class Test{ public static void main(String[] args){ int a[]={12,1,3,34,121,565}; Arrays.sort(a); System.out.println(Arrays.toString(a)); }}[1, 3, 12, 34, 121, 565]