RingBuffer.java


Below is the syntax highlighted version of RingBuffer.java from §4.3 Stacks and Queues.


/******************************************************************************
 *  Compilation:  javac RingBuffer.java
 *  Execution:    java RingBuffer
 *
 *  Ring buffer (fixed size queue) implementation using a circular array
 *  (array with wrap-around).
 *
 ******************************************************************************/

public class RingBuffer<Item> {
}


Copyright © 2000–2022, Robert Sedgewick and Kevin Wayne.
Last updated: Thu Aug 11 10:29:48 EDT 2022.