title: Syntax error on token "void", @ expected
body: <p>Does anyone know what causes the following errors? This seems like a pretty standard construct to me. Thanks (errors then code)</p>
  
  <pre><code>public class Emailer {
  
      import java.io.*;
      import java.net.*;
  
      public void getFile(String dlFileName,String saveFileName) {
  
      }
  
      public static void main(String[] args) {
          // TODO Auto-generated method stub
  
      }
  
  }
  </code></pre>
  
  <p>Error was :  </p>
  
  <pre><code>Syntax error on token "void", @ expected
  Syntax error on token "]", invalid (
  Syntax error, insert "]" to complete ArrayAccess
  Syntax error, insert ")" to complete SingleMemberAnnotation
  Syntax error, insert "enum Identifier" to complete EnumHeader
  </code></pre>