class CocktailSort {
    static void main(String[] args) {
        Integer[] array = [ 5, 1, -6, 12, 3, 13, 2, 4, 0, 15 ]
        println("before: " + Arrays.toString(array))
        cocktailSort(array)
        println("after: " + Arrays.toString(array))
    }