Thank you got it working problem was in my enqueue and dequeue:
public void enqueue(double x) {
if (isFull()) {
throw new RuntimeException("Ring buffer overflow");
...
Type: Posts; User: KobusJordaan
Thank you got it working problem was in my enqueue and dequeue:
public void enqueue(double x) {
if (isFull()) {
throw new RuntimeException("Ring buffer overflow");
...
Good day im really struggling to see what is wrong with my code any help would be awesome.
public class RingBuffer {
public double[] rb; // items in the buffer
private int...