Search:

Type: Posts; User: KobusJordaan

Search: Search took 0.14 seconds.

  1. Replies
    2
    Views
    2,908

    Re: Circular Array

    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");
    ...
  2. Replies
    2
    Views
    2,908

    Circular Array

    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...
Results 1 to 2 of 2