title: Trying to extend one class to another
body: <p>Currently I have a working class called Humane32 and I want to extend my class Fysikere42 with this one, I have 2 arguments in Human, age and name, and one additional on the Fysikere42. The Humane32 class is currently looking like this:</p>
  
  <pre><code>import java.util.List;
  import java.util.Arrays;
  import java.util.Random;
  import java.util.ArrayList;
  
  public class Humane32{
      public static class Human{
          private static final List&lt;String&gt; names = Arrays.asList("Rutger","Oscar","Aram","Noak","Hilda","Dahl");
          public Random rand=new Random();
          public String name;
          public int age;
  
          public Human(int age, String name){
              this.age=age;
              this.name=name;
  
          }
          public Human(){
              this.age=rand.nextInt(101);
              this.name=names.get(rand.nextInt(names.size()));
          }
  
          public String getName(){
              return this.name;
          }
          public int getAge(){
              return this.age;
          }
          public String toString(){
              return "åldern är:"+this.age+"\n"+"namnet är:"+this.name;
          }
  
      }
      public static void main(String[] args){
          ArrayList&lt;Human&gt; humaner=new ArrayList&lt;Human&gt;();
          int q;
          for (q=0;q&lt;=15;q++){
              humaner.add(new Human());
              System.out.println(humaner.get(q).toString());
          }
  
      }
  }
  </code></pre>
  
  <p>And my new class is currently looking like this:</p>
  
  <pre><code>import java.util.List;
  import java.util.Arrays;
  import java.util.Random;
  import java.util.ArrayList;
  
  public class Fysikere42 extends Humane32{
      public static class Fysikerere42{
          public int year;
  
          public Fysikere42(int age, String name,int year){
              this.age=age;
              this.name=name;
              this.year=year;
  
          }
          public int getYear(){
              return this.year;
          }
      }
      public static void main(String[] args){
          System.out.println("hej");
      }
  }
  </code></pre>
  
  <p>But I'm getting the error message, "invalid method declaration, return type required". Where did it go wrong?</p>