Skip to content

Instantly share code, notes, and snippets.

View gustsu's full-sized avatar
🏠
Working from home

Justin Tew gustsu

🏠
Working from home
View GitHub Profile
@gustsu
gustsu / SalesReport.java
Created June 6, 2015 04:55
Sales Report using Java and MySQL
/********************************************************************************************************************
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 June 6, 2015 00:55
Stack Data Structure with 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 June 6, 2015 00:48
Hash Chaining With 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 February 22, 2023 16:03
Pascal Triangle Generator
//Justin Tew
//October 13, 2012
//CSCD 211 @ 11am
public class Triangle {
private int rows;
private int[][] ara;