Code example for Deque

Methods: add

0
    private Attribute token;
    private Deque<State> states = new LinkedList<State>();
    private char quote = ' ';
 
    public AttributeLexer() { 
        states.add(State.KEY);
    } 
 
    public Attribute getToken(String input, int lineno) {
        token = new Attribute(input, lineno);
        for (int i = 0; i < input.length(); i++) {
            parse(input.charAt(i));
        } 
        parse(','); 
        return token;
    } 
 
    private State state() { 
        return states.getFirst();
    } 
Connect your IDE to all the code out there  Get Codota for Java