Code example for LinkedList

Methods: getFirst, size, toArray

0
    	} 
    	return m;
    } 
 
    public static String[] list2sa(LinkedList l) {
        if (l.size() == 1 && l.getFirst() instanceof String[]) {
            return (String[])l.getFirst();
        } 
        return (String[])l.toArray(new String[0]);
    } 
 
    private class DefaultEntry { 
        int depth;
        int line;
        int col;
        Object value;
        boolean used = false;
    } 
 
	protected void addGenerator(String element, Class c) {
		generators.put(element, new Generator(c));