public static void main(final String[] args) {
        final int[] nums = new int[] { 1, 2, 3, 4, 5, 6, 7 };
        new ArrayRotate().rotate4(nums, 3);
        for (int i = 0; i < nums.length; i++) {
            System.out.println(nums[i]);
        }
    }