title: The method importTeams() is undefined for the type SchedulerOutput
body: <p>I'm creating a scheduler in Java. I had everything inside in one class, but now I want to split it up into separate classes. It's quite small program, so there's likely little benefit, but I want to get the concepts of it correct. Code is below.</p>
  
  <p>I'm getting an error in the second class on the importTeams() method. I thought that as long as I imported the package this method was in, it would be ok. Obviously not. Any tips?</p>
  
  <pre><code>package fifa.scheduler.fileimport;
  
  import java.io.BufferedReader;
  import java.io.FileNotFoundException;
  import java.io.FileReader;
  import java.io.IOException;
  import java.util.*;
  import fifa.scheduler.output.*;
  
  public class FileRead2 {
  
      private String rrTeam;
  
       public List&lt;String&gt; importTeams() {    
              ArrayList&lt;String&gt; teamList = new ArrayList&lt;String&gt;(); 
              BufferedReader br = null; 
              int linecount = 0;  
              String teamcounter;
              try {
                  br = new BufferedReader(new FileReader("path")); 
                  while (br.readLine() != null){
                      linecount ++;
                  }
                  br.close();
                  br = new BufferedReader(new FileReader("path"));
                  setRrTeam(br.readLine());
                  while ((teamcounter = br.readLine()) != null) {
                      teamList.add(teamcounter);
                      }
                  if (linecount % 2 != 0) {
                      teamList.add("byeteam");
                  }
              } catch (FileNotFoundException e) {
                  e.printStackTrace();
              } catch (IOException e1) {
                  e1.printStackTrace();
              }           
              return teamList;
       }
          public static void main(String args[]){
              FileRead2 fr = new FileRead2();
              fr.PrintTeams();    
          }
          private void setRrTeam(String rrTeam) {
              this.rrTeam = rrTeam;
          }
          private String getRrTeam() {
              return rrTeam;
          }
  }
  
  
  
  package fifa.scheduler.output;
  
  import java.util.Collections;
  import java.util.List;
  import fifa.scheduler.fileimport.FileRead2;
  
  public class SchedulerOutput {
      public void PrintTeams(){
  
      List&lt;String&gt; teamList = importTeams();
       int tl = teamList.size();
       int bh = 0;
       int uh = (tl - 2);
       for (int i = 0; i &lt;=(teamList.size()-1); i++) {     
       System.out.println("Week " + (i+1) + " fixtures");
       System.out.println(getRrTeam() + " vs " + teamList.get(tl -1));
       while ((bh &lt;= (tl / 2)) &amp;&amp; (uh &gt;= ((tl / 2)))) {
           System.out.println(teamList.get(bh) + " vs " + teamList.get(uh));
           bh++;
           uh--;
       }
       Collections.rotate(teamList, 1);
       tl = teamList.size();
       bh = 0;
       uh = (tl - 2);
       }
  }
  }
  </code></pre>