Android List to Array Convert toCharArray(final List pItems)

Here you can find the source of toCharArray(final List pItems)

Description

to Char Array

Declaration

public static final char[] toCharArray(final List<Character> pItems) 

Method Source Code

//package com.java2s;
import java.util.List;

public class Main {
    public static final char[] toCharArray(final List<Character> pItems) {
        final char[] out = new char[pItems.size()];
        for (int i = out.length - 1; i >= 0; i--) {
            out[i] = pItems.get(i);//  w  w w  .  ja  v a 2 s.  c  o m
        }
        return out;
    }
}

Related

  1. toByteArray(final List pItems)
  2. toDoubleArray(final List pItems)
  3. toFloatArray(final List pItems)
  4. toIntArray(final List pItems)
  5. toLongArray(final List pItems)