List of utility methods to do List Shift
T | shift(List shift return remove(list, 0);
|
void | shift(String s, int length, List shift if (length == 0) { if (!list.contains(res.toString())) { list.add(res.toString()); } else { for (int i = 0; i < s.length(); i++) { String news = s.substring(0, i) + s.substring(i + 1, s.length()); String simb = s.substring(i, i + 1); ... |
List | shiftElementsToEnd(final List returns a list of everything in source, with the first count units moved to the end final ArrayList<T> rVal = new ArrayList<>(source.size()); for (int i = count; i < source.size(); i++) { rVal.add(source.get(i)); for (int i = 0; i < count; i++) { rVal.add(source.get(i)); if (source.size() != rVal.size()) { ... |