This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |