Java Collection to Array toCharArray(Collection patterns)

Here you can find the source of toCharArray(Collection patterns)

Description

to Char Array

License

LGPL

Declaration

public static List<char[]> toCharArray(Collection<String> patterns) 

Method Source Code


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

import java.util.ArrayList;
import java.util.Collection;

import java.util.List;

public class Main {
    public static List<char[]> toCharArray(Collection<String> patterns) {
        List<char[]> charpatterns = new ArrayList<char[]>(patterns.size());
        for (String pattern : patterns) {
            charpatterns.add(pattern.toCharArray());
        }/*w  w w.jav a2s  .c om*/
        return charpatterns;
    }
}

Related

  1. toArrayString(Collection col, boolean spacing)
  2. toBaseTypedCollection(Collection initial)
  3. toByteArray(Collection c)
  4. toByteArray(Collection c)
  5. toCharArray(Collection source)
  6. toClassArray(Collection> collection)
  7. toClassArray(Collection> collection)
  8. toClassArray(final Collection collection)
  9. toDouble(final Collection numbers)