package de.nplusc.izc.tools.baseTools; import java.util.Arrays; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author LH */ public class arraytools { protected arraytools() { } public static int arrayMaxValue(int[] input) { int iMax = 0; for(int i=0;iiMax) { iMax = input[i]; } } return iMax; } public static int tsvSumUpInCol(String[][] input,int col) { int sum = 0; int value = 0; for(int i=0;i T[] concatAll(T[] first, T[]... rest) { int totalLength = first.length; for (T[] array : rest) { totalLength += array.length; } T[] result = Arrays.copyOf(first, totalLength); int offset = first.length; for (T[] array : rest) { System.arraycopy(array, 0, result, offset, array.length); offset += array.length; } return result; } }