Skip to content

Instantly share code, notes, and snippets.

View Juliet-Selebalo's full-sized avatar

Juliet-Selebalo

View GitHub Profile
package stack;
import java.util.Arrays;
/**
*
* @author Student
* @param <T>
*/
@Juliet-Selebalo
Juliet-Selebalo / Queue Implementation
Created June 22, 2018 18:03
Creaing a queue interface and implementing it using an array
import java.util.Arrays;
import queue.QueueInterface;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
@Juliet-Selebalo
Juliet-Selebalo / StackImpl.java
Created May 31, 2018 09:09 — forked from Apondi/StackImpl.java
Implementation of a Java stack
package stack;
/**
*
* @author kevi
* @param <T>
*/
public class StackImpl<T> implements Stack<T>{
private T[] data;
private int capacity;