Write the generic class Holder<T>. It stores one value of type T, set by the constructor, with getValue() returning it and setValue(T value) replacing it.
Use the type parameter T, not Object — main builds a Holder of Strings and one of Integers from the same class.