Here you can find the source of toLowerCase(List
Parameter | Description |
---|---|
list | The String list to process |
public static List<String> toLowerCase(List<String> list)
//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; } }