Java Array Shift shift(String[] src, String word)

Here you can find the source of shift(String[] src, String word)

Description

shift

License

Open Source License

Declaration

public static void shift(String[] src, String word) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {

    public static void shift(String[] src, String word) {
        for (int i = 0; i < src.length - 1; i++) {
            src[i] = src[i + 1];// www . ja  v  a 2  s .c o  m
        }
        src[src.length - 1] = word;
    }
}

Related

  1. shift(Object a[], int count)
  2. shift(String[] args, int count)
  3. shift(String[] array)
  4. shift(String[] in)
  5. shift(String[] original, int offset)
  6. shift(String[] tokens)
  7. shift(T[] array, int count)
  8. shiftArgs(final String[] args)
  9. shiftArgs(String[] args, int offset)