Java Array Normalize normalize(String[] slist)

Here you can find the source of normalize(String[] slist)

Description

normalize

License

Apache License

Declaration

public static String[] normalize(String[] slist) 

Method Source Code

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

public class Main {
    public static String[] normalize(String[] slist) {
        if (slist == null)
            return null;
        String[] ret = new String[slist.length];
        for (int i = 0; i < slist.length; i++) {
            ret[i] = normalize(slist[i]);
        }/*  w w w . ja  v a 2  s.  c  o m*/
        return ret;
    }

    public static String normalize(String s) {
        if (s == null)
            return null;
        s = s.trim();
        if (s.length() == 0)
            return null;
        return s;
    }
}

Related

  1. normalize(int[] a)
  2. normalize(int[] values)
  3. normalize(int[][][] data, int startX, int startY, int stopX, int stopY, double scale)
  4. normalize(long[] v, float[] target)
  5. normalize(Number[] array)
  6. normalize01(float[] array)
  7. normalize2(double[] x)
  8. normalize3(float[] result, float[] a)
  9. normalizeAndInvertValues(double[] values, double maxValue, double minValue)