Code example for Deque

Methods: size

0
		return null; 
	} 
 
	public int eventCount() 
	{ 
		return events.size();
	} 
 
 
	public enum Event 
	{ 
		UP_KEY(0),
		DOWN_KEY(1),
		LEFT_KEY(2),
		RIGHT_KEY(3);
 
		private int code;
 
		Event(int code)
		{ 
			this.code = code;