title: Java print method won't work in class
body: <p>I am trying to get the print method in my actor class to print the String that was
  built in the toString() method. However I keep getting an error. (invalid method declaration, return type required)</p>
  
  <pre><code>public class actor {
  
      private String name;
      private String address;
      private int age;
  
  
  public actor(String name, String address, int age) {
  
      this.name = name;
      this.address = address;
      this.age = age;
  
  
  }
  
  
  public void setName (String name) {
  
      this.name = name;
  
  }
  
  
  public void setAddress (String address) {
  
      this.address = address;
  }
  
  
  public void setAge (int age) {
  
      this.age = age;
  
  }
  
  public void setFilm () {
  
  
  }
  
  public String getName () {
      return name;
  
  }
  
  public String getAddress () {
      return address;
  
  }
  
  public String toString (String name, int age, String address){
  
          return name+" who's "+age+" and lives in "+address;
  
  
  }
  
  
  public void print (){
      String a = toString();
      System.out.println(a);
  
  }
  
  
  print();
  }
  </code></pre>
  
  <p>I have been trying to get this working for quite a while to no avail.</p>