Is it possible to create a class within the same file that contains the main method? A programming contest that I'm practicing for only accepts a single file as a solution so I can't write the class in a separate file and send it in.
I know you can create inner classes but does it provide the same functionality as normal classes?