Java ListIterator Usage toLowerCase(List list)

Here you can find the source of toLowerCase(List list)

Description

Turns every element in the given String list into lowercase

License

Open Source License

Parameter

Parameter Description
list The String list to process

Return

The processed list

Declaration

public static List<String> toLowerCase(List<String> list) 

Method Source Code


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

import java.util.List;
import java.util.ListIterator;

public class Main {
    /**//from   www  . j a  va2 s.c  o  m
     * Turns every element in the given String list into lowercase
     * 
     * @param list
     *            The String list to process
     * @return The processed list
     */
    public static List<String> toLowerCase(List<String> list) {
        ListIterator<String> iterator = list.listIterator();

        while (iterator.hasNext()) {
            iterator.set(iterator.next().toLowerCase());
        }

        return list;
    }
}

Related

  1. toArray(List a)
  2. toCFML(Object obj)
  3. toCharArrays(List strings)
  4. toInt(final List digits, final int base)
  5. toIntegerArray(List list)
  6. toLowerCase(List stringList)
  7. toposort(Iterable items, Comparator partOrder)
  8. trimTail(List l)
  9. valueOf(E... elements)