title: Creating a java class within the main file?
body: <p>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. </p>
  
  <p>I know you can create inner classes but does it provide the same functionality as normal classes?</p>