Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Justin Tew gustsu

🏠
Working from home
View GitHub Profile
@gustsu
gustsu / SalesReport.java
Created Jun 6, 2015
Sales Report using Java and MySQL
View SalesReport.java
/********************************************************************************************************************
Author: Justin Tew
Class: CSCD 327
Professor: Chris Peters
Date: 3/11/2015
Extra Credit Attempted (and Completed!)
All code written by myself with the exception of the getConnection method, which was written by Dr. Dan Li
@gustsu
gustsu / ListStack.java
Created Jun 6, 2015
Stack Data Structure with Java
View ListStack.java
/*
A singly linked list-based implementation of the stack data structure.
Justin Tew
*/
public class ListStack implements Stack{
protected int size; //the number of items in the stack
protected Node top; //reference to the head node of the list, which is also viewed as the top item in the stack
public ListStack(){
@gustsu
gustsu / HashChain.java
Created Jun 6, 2015
Hash Chaining With Java
View HashChain.java
/*
HashTable Object that solves hash collisions with chains
Program 7
Written by: Justin Tew, justintew@eagles.ewu.edu
Created with the help of Dr. Xu's hash table psudocode
*/
public class HashChain
{
@gustsu
gustsu / Triangle.java
Last active Aug 29, 2015
Pascal Triangle Generator
View Triangle.java
//Justin Tew
//October 13, 2012
//CSCD 211 @ 11am
public class Triangle {
private int rows;
private int[][] ara;