List of utility methods to do Array Trim
String[] | trimRecords(String[] records) trim Records return Arrays.copyOf(trimTextValues(records), records.length, String[].class); |
String[] | trimStringArray(final String[] input) Trims an array of Strings to remove the whitespace. final ArrayList<String> output = new ArrayList<String>(); for (int i = 0; i < input.length; i++) { String s = input[i].trim(); if (!s.equals("")) output.add(s); return output.toArray(new String[0]); |
double[] | trimZeroTail(final double[] data) Trim zero tail. return Arrays.copyOfRange(data, 0, countNonZeroBeginning(data));
|