Assignment 8

A queue is a dynamic data structure which is first in first out. We are going to create it using an array. You will need the code from assignment 7 and the following methods.

public class Queue{
    private int values[];
    private int front = 0;
    private int free = 0;
    public Queue(){
        values = new int[10];
    }
    public void add(int value){}
    public int get(){}
}

 

 
Basics
Menu
Search