public char[] toArray(List<Character> list){ char[] toReturn = new char[list.size()]; int i = 0; for(char c : list) toReturn[i ++] = c; return toReturn; }