/* SortArray2.java CIS 160 David Klick 2006-02-01 This program demonstrates the built-in sort method of the Arrays utility class to sort an array of ints. */ import java.util.Arrays; public class SortArray2 { public static void main(String[] args) { int[] n = { 8, -8, 13, 7, 42, 5 }; Arrays.sort(n); for (int i : n) System.out.print(i + " "); } } /* Sample run -8 5 7 8 13 42 */