Here you can find the source of toCharArray(final List
public static final char[] toCharArray(final List<Character> pItems)
//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; } }