public static void main(String... args) {

        int[] array = {1, 2, 32, 12, 34, 543, 1434, 565, 777};

        sort(array);

        for (int i = 0; i < array.length; i++) {
            System.out.println(array[i]);
        }

    }