title: HashMap Java - Error message
body: <p>Below is my code:    </p>
  
  <pre><code>import java.util.HashMap;
  
      public interface Action {
          abstract void run(String s);
      }
  
  public static void main (String[] args){
  
      HashMap&lt;String, Action&gt; actions = new HashMap&lt;String, Action&gt;();
      actions.put("visible", new Action() {
          public void run(String s) {
              System.out.println("Running 'visible' on: " + s);
          }
      });
      String input[];
      input = new String[2];
      input[0] = "sun";
      input[1] = "visible";
      actions.get(input[1]).run(input[0]);
  }
  </code></pre>
  
  <p>For the line: "<strong>public static void main (String[] args){</strong>"</p>
  
  <p><em>I am getting the following error:</em></p>
  
  <p>Multiple markers at this line</p>
  
  <p>Syntax error, insert "enum Identifier" to complete EnumHeader </p>
  
  <p>Syntax error on token "]", :: expected after this token </p>
  
  <p>Syntax error on token "void", @ expected</p>
  
  <p><strong>The code seems fine to me. Can anybody help me out in getting rid of this error please?</strong></p>