Skip to content

Commit

Permalink
Updated FixedArrayQueue
Browse files Browse the repository at this point in the history
  • Loading branch information
jaluceloyola committed Mar 12, 2024
1 parent 45dceee commit fca22d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/edu/luc/cs271/arrayqueue/FixedArrayQueue.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ public FixedArrayQueue(final int capacity) {
this.capacity = capacity;
this.data = (E[]) new Object[capacity];
this.size = 0;
this.front = -1;
this.rear = -1;
// this.front = -1;
// this.rear = -1;

// this.front = 0;
// this.rear = capacity - 1;
this.front = 0;
this.rear = capacity - 1;
}

@Override
Expand Down

0 comments on commit fca22d7

Please sign in to comment.