Skip to content

Instantly share code, notes, and snippets.

View Apondi's full-sized avatar
💭
coding

KevPreneur Apondi

💭
coding
  • Nairobi
View GitHub Profile
/*
* 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.
*/
package queue;
import java.util.Arrays;
/**
@Apondi
Apondi / queueInterface.java
Created June 5, 2018 09:21
Queue Interface
/*
* 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.
*/
package queue;
/**
*
* @author Apondi Kevin Omondi
@Apondi
Apondi / StackImpl.java
Last active June 13, 2018 16:19
Implementation of a Java stack
package stack;
/**
*
* @author kevi
* @param <T>
*/
public class StackImpl<T> implements Stack<T>{
private T[] data;
private int capacity;