Here you can find the source of get(int index, final T[]... arrays)
public static <T> T get(int index, final T[]... arrays)
//package com.java2s; import java.util.*; public class Main { public static <T> T get(int index, final T[]... arrays) { int shift = index; for (T[] tab : arrays) { if (shift < tab.length) { return tab[shift]; } else { shift -= tab.length;//from www. j ava 2s .co m } } return null; } public static <T> T get(int index, final List<T>... arrays) { int shift = index; for (List<T> tab : arrays) { if (shift < tab.size()) { return tab.get(shift); } else { shift -= tab.size(); } } return null; } }