Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View tliggett's full-sized avatar

TJ Liggett tliggett

View GitHub Profile
// Creates an interface that can store both doubles and Strings in the same ArrayList
interface SuperVariable {
String getString();
// returns String if String is stored
boolean isString();
// denotes whether SuperVariable is a SuperString or a SuperDouble
double getDouble();
// returns double if double is stored