I know that something like this is possible in Python and other languages, but I\'m looking to see if there\'s something basic I\'m overlooking in Java, or if the language j