title: Error: cannot find symbol of Parser
body: <p>So I have a class parser that goes something like this</p>
  
  <pre><code>public class Parser implements Serializable {
  
       //parse Programfile with name=filename
       public Program parseProgramFile(String filename){
           /*method defined*/
           return Program
       }
  </code></pre>
  
  <p>And on my main I am calling the parser to pass its return through another class constructor like this</p>
  
  <pre><code>public static void main(String[] args) {
        Manager manager = new Manager();
        String datafile = System.getProperty("import");
        if (datafile != null) {
          try {
      //Import file into Manager through Parser instance
      manager(parseProgramFile(datafile));
  </code></pre>
  
  <p>And this is where I keep getting it wrong</p>
  
  <pre><code>error: cannot find symbol
  manager(parseProgramFile(datafile));
          ^
  </code></pre>
  
  <p>I'm really not sure of what I am doing wrong here. Is it the instantiation of parser gone wrong? I am currently creating a parser object in the manager constructor.</p>