Code example for Queue

Methods: remove, size

0
	private int nextExtra() { 
		return (int) nextExtraChar(); 
	} 
 
	private char nextExtraChar() { 
		return (mExtras.size() > 0 ? mExtras.remove().charValue() : 0);
	} 
 
	private static int between(int min, int interval, int offset) {
		return min + offset % interval;
	} 
 
	private char nextBetween(char base, int interval) {
		return (char) between((int) base, interval, nextExtra());
	} 
 
	private static String rotate(String s, int amount) {
		Queue<Character> work = new LinkedList<Character>();
		for (char c : s.toCharArray()) {
			work.add(Character.valueOf(c));
		}