title: Java importing Package wont work [Compiler throwing missleading Errors]
body: <p>When I try to import another package, it throws some weird error.
  I'm working with eclipse and imported the package <code>humanBeeings</code> like this: <br><a href="https://i.stack.imgur.com/hypMo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hypMo.png" alt="enter image description here"></a></p>
  
  <p>The Error says: Syntax error, @ expected</p>
  
  <p>I dont know how to fix this anybody got an idea?<br>
  I placed the @ on several places already but nothing seems to work</p>
  
  <p>The code of the list Collection Class is the following:</p>
  
  <pre><code>package listCollection;
  import humanBeeings.Human;
  import java.util.LinkedList;
  import java.util.List;
  
      public class listCollection {
          List&lt;Human&gt; list = new LinkedList &lt;Human&gt;(); // &lt;&gt; zur spezifizierung der Objektklasse, nur Objekte dieser Klasse dürfen in die Liste
          list.add(new Human("Dennis", 20));
          list.add(new Human("vladimir", 33));
          for (Human h: list) { // für das Objekt der Objektklasse Human in der List
              System.out.println(h.getName());
          }
      }
  </code></pre>
  
  <p>The code of the Human Class looks like this..</p>
  
  <pre><code>package humanBeeings;
  
      public class Human {
          // Objekteigenschaften
          private String name;
          private int age;
          // Konstrucktoren
          public Human(String name, int age){
              this.name = name;
              this.age = age;
          }
          // Accessoren/Methoden
          public void setName(String name){
              this.name = name;
          }
          public String getName(){
              return this.name;
          }
          public void setAge(int age){
              this.age = age;
          }
          public int getAge(){
              return this.age;
          }
          //Main
          public static void main(String[] args){
              // Some actions here...
          }
      }
  </code></pre>