Java Array arraysConvert(String[] src, int column)

Here you can find the source of arraysConvert(String[] src, int column)

Description

arrays Convert

License

Apache License

Declaration

public static String[][] arraysConvert(String[] src, int column) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {

    public static String[][] arraysConvert(String[] src, int column) {
        int row = src.length / column;
        String[][] tmp = new String[row][src.length / row];
        for (int i = 0; i < row; i++) {
            tmp[i] = new String[column];
            System.arraycopy(src, i * column, tmp[i], 0, column);
        }//from  w ww.  j  a  va2  s  .c  o m
        return tmp;
    }
}

Related

  1. arrayPrint(T[] x)
  2. arrayPush(String[] array, String push)
  3. arrayRangeEquals(byte[] a, int aOffset, byte[] b, int bOffset, int byteCount)
  4. arrayRepresentsProbability(double[] probs)
  5. arraySame(Object[] array1, Object[] array2)
  6. arraySeekDelete(final T[] arr, final T[] dest, final T... dels)
  7. arrayStr(int[] A)
  8. arrayString(double[] test)
  9. arrayString(int[] data)