@Test public void testme(){ String[] s1 = new String[]{"aaa", "bbb", "ccc", "ddd"}; String[] s2 = CollectionUtil.shift(s1); Assert.assertEquals(3, s2.length); Assert.assertEquals("bbb", s2[0]); Assert.assertEquals("ddd", s2[2]); }
public static String[] shift(String[] array) { return shift(array, 1); }
CollectionUtil { public static String[] shift(String[] array) { return shift(array, 1); } }
CollectionUtil { public static String[] shift(String[] array) { return shift(array, 1); }  }
CollectionUtil { public static String[] shift(String[] array) { return shift(array, 1); }  static void addIfNotExist(List<T> list, T obj); static String[] shift(String[] array); static String[] shift(String[] array, int n); @SafeVarargs static String array2String(T... array); static String list2String(List<?> list); @SafeVarargs static List<T> array2List(T... array); static Object[] list2Array(List<T> list); static String join(List<String> list, String separator); @SafeVarargs static Class<?>[] objects2Classes(T... objects); static Class<?>[] objects2Classes(List<Object> objects); }
CollectionUtil { public static String[] shift(String[] array) { return shift(array, 1); }  static void addIfNotExist(List<T> list, T obj); static String[] shift(String[] array); static String[] shift(String[] array, int n); @SafeVarargs static String array2String(T... array); static String list2String(List<?> list); @SafeVarargs static List<T> array2List(T... array); static Object[] list2Array(List<T> list); static String join(List<String> list, String separator); @SafeVarargs static Class<?>[] objects2Classes(T... objects); static Class<?>[] objects2Classes(List<Object> objects);  }