Java tutorial
//package com.java2s; import java.util.List; public class Main { public static void rotate(List<Integer> list) { list.add(list.remove(0)); } }