Java Array Convert to arrayToLowercase(String[] array)

Here you can find the source of arrayToLowercase(String[] array)

Description

Converts an String array to lowercase.

License

LGPL

Parameter

Parameter Description
array Array to convert.

Return

Converted array.

Declaration

public static String[] arrayToLowercase(String[] array) 

Method Source Code

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

public class Main {
    /**/*from  www  . j  a v  a2  s .c  om*/
     * Converts an String array to lowercase.
     *
     * @param array Array to convert.
     * @return Converted array.
     */
    public static String[] arrayToLowercase(String[] array) {
        String[] copy = new String[array.length];
        for (int i = 0; i < array.length; i++) {
            copy[i] = array[i].toLowerCase();
        }
        return copy;
    }
}

Related

  1. arrayToInt(final byte[] array, final int start)
  2. arrayToJava(double[] v, int off, int len, String name)
  3. arrayToJson(int[] x)
  4. arrayToLine(Object[] source)
  5. arrayToLines(String[] lines)
  6. arrayToMatlabStringArray(double da[])
  7. arrayToOneLineSpaceDelimitedString(Object obj[])
  8. arrayToQueryString(String key, Object[] arr)
  9. arrayToSeparatedString(final String[] strings, final String separator)