title: Why am i getting " Duplicate modifier for the type Test" and how to fix it
body: <p>I was trying to make a method that returns true if given "Strings" are anagrams. unfortunately i cant even test it and i don know what is wrong. The markers at left says:</p>
  
  <blockquote>
    <p>Multiple markers at this line
        - Breakpoint:Test
        - Duplicate modifier for the 
         type Test</p>
  </blockquote>
  
  <p>Here is the source code: </p>
  
  <pre><code>package zajecia19;
  
  import java.io.BufferedReader;
  import java.io.FileReader;
  import java.util.HashMap;
  public 
  public class Test {
      public static boolean Anagraamy(String s1, String s2) {
          if (s1.length() != s2.length()) {
              return false;
          }
          HashMap&lt;Character, Integer&gt; map = new HashMap&lt;&gt;();
          for (int i = 0; i &lt; s1.length(); i++) {
              if (map.containsKey(s1.charAt(i))) {
                  map.put(s1.charAt(i), map.get(s1.charAt(i)) + 1);
              } else {
                  map.put(s1.charAt(i), 1);
              }
              if (map.containsKey(s2.charAt(i))) {
                  map.put(s2.charAt(i), map.get(s2.charAt(i)) - 1);
              } else {
                  map.put(s2.charAt(i), -1);
              }
          }
          for( Integer value: map.values()){
              if(value != 0 ){
                  return false;
              }
          }
  
          return true;
  
      }
  
      public static void main(String[] args) {
          try (BufferedReader br = new BufferedReader(new FileReader("slowa2"))) {
          System.out.println( Anagraamy("abba", "babb"));
          } catch (Exception e) {
              e.printStackTrace();
          }
      }
  }
  </code></pre>