title: Methods inside methods
body: <p>Is it syntactically correct to have a method inside the main method in Java? For example </p>
  
  <pre><code>class Blastoff {
  
      public static void main(String[] args) {
  
          //countdown method inside main
          public static void countdown(int n) {
  
              if (n == 0) {
                  System.out.println("Blastoff!");
              } else {
                  System.out.println(n);
                  countdown(n - 1);
              }
          }
      }
  }
  </code></pre>