int[] t = { 56, 96, 4, 0, 1, 2098, 2, 5, 1, 69, 26, 95, -26, 654, 1, 3, -1 }; Arrays.sort( t ); System.out.println( Arrays.toString( t ) );