package ru.parsentev.task_015;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import static org.slf4j.LoggerFactory.getLogger;

/**
 * TODO: comment
 *
 * @author parsentev
 * @since 28.07.2016
 */
public class CycleShift {
    private static final Logger log = getLogger(CycleShift.class);

    private final int[] values;

    public CycleShift(final int[] values) {
        this.values = values;
    }

    public int[] shift(int position) {
        throw new UnsupportedOperationException();
    }
}

@@ -53,40 +53,8 @@
 ger;
-%0Aimport org.slf4j.LoggerFactory;
 %0A%0Aim
@@ -430,49 +430,229 @@
     
-throw new UnsupportedOperationException()
+for (int j = 0; j %3C position; j++) %7B%0A            int end = values%5Bvalues.length - 1%5D;%0A            System.arraycopy(values, 0, values, 1, values.length - 2 + 1);%0A            values%5B0%5D = end;%0A        %7D%0A        return values
 ;%0A  

Task_015