Piet Souris wrote:. . . make the method 'showObject' generic instead. . . .
Piet, I think I would prefer that approach myself. Please explain a bit more, particularly about why you made the method
static, in case OP isn't familiar with generic methods.
OP: this appears to be the first time you used the code button, but you didn't quite get it right. Please look
here for a reminder of how code tags work. Because this was your first attempt, I have corrected the code tags, and doesn't the code look better
Because you had three separate classes, I added three pairs of code tags and removed some empty space between them.