title: Converting Collections to Strings, getting invalid method declaration
body: <p>I'm working on an assignment and I feel super close! But I just don't understand the last error message I'm getting and was wondering if you could help me understand it so I avoid it in the future.</p>
  
  <p>The assignment started off with an example code:</p>
  
  <pre><code>import java.util.*;
  
  public class Proj09{
      public static void main(String args[]){
      new Proj09Runner().getCollection();
      }
  }
  
  class Proj09Runner{
      public void getCollection(){
          Collection collection = new TreeSet();
          Populator.fillIt(collection);
          Iterator iter = collection.iterator();
          while(iter.hasNext()){
              System.out.print(iter.next());
          }
      System.out.println();
      }
  }
  
  class Populator{
      public static void fillIt(Collection collection){
          collection.add("Able");
          collection.add("Baker");
          collection.add("aBle");
          collection.add("Charley");
          collection.add("Baker");
      }
  }
  </code></pre>
  
  <p>Output: Able Baker aBle Charley Baker</p>
  
  <p>And our job is to change that code so that it fits a different main that I'm not able to edit:</p>
  
  <pre><code>import java.util.*;
  
  public class Proj09{
      public static void main(String args[]){
          Proj09Runner runner = new Proj09Runner();
  
          Collection &lt;String&gt; collection = runner.getCollection();
  
          collection.add("Able");
          collection.add("Baker");
          collection.add("aBle");
          collection.add("Charley");
          collection.add("Baker");
  
          Iterator &lt;String&gt; iter = collection.iterator();
          while(iter.hasNext()){
              System.out.print(iter.next() + " ");
          }
          System.out.println();
      }
  }
  </code></pre>
  
  <p>So far, I've been playing with the Proj09Runner class:</p>
  
  <pre><code>class Proj09Runner extends Proj09{
      public void getCollection(){
      System.out.println("My Name.");
      System.out.println();
      }
  }
  </code></pre>
  
  <p>Small change to the output, I'm supposed to add my name.
  Desired output:
  My Name
  Able Baker aBle Charley Baker</p>
  
  <p>But I keep getting different errors that go back to the line <code>Collection &lt;String&gt; collection = runner.getCollection();</code> in the main I'm not supposed to change. I'll get called out on void's not being able to be converted to <code>Collection &lt;String&gt;</code> or "invalid method declaration; return type required."</p>
  
  <p>Could y'all help me figure out why I'm getting those messages and what they mean so that I can avoid them in the future?</p>
  
  <p>Thanks, I really do appreciate it.</p>