Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

convert character arraylist to array

public char[] toArray(List<Character> list){
    char[] toReturn = new char[list.size()];
    int i = 0;
    for(char c : list)
        toReturn[i ++] = c;
    return toReturn;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #character #arraylist #array
ADD COMMENT
Topic
Name
3+4 =