title: homework: how to invoke a java method
body: <p>I have:</p>
  
  <pre><code>/*
   * File: NameSurferEntry.java
   * --------------------------
   * This class represents a single entry in the database.  Each
   * NameSurferEntry contains a name and a list giving the popularity
   * of that name for each decade stretching back to 1900.
   */
  
  import acm.util.*;
  import java.util.*;
  
  public class NameSurferEntry implements NameSurferConstants {
  
  /* Constructor: NameSurferEntry(line) */
  /**
   * Creates a new NameSurferEntry from a data line as it appears
   * in the data file.  Each line begins with the name, which is
   * followed by integers giving the rank of that name for each
   * decade.
   */
      public NameSurferEntry(String line) {
          findName(line);
          findDecades(line);
      }
  ...
  </code></pre>
  
  <p>as a class.</p>
  
  <p>How would I call the method NameSurferEntry from within another class.</p>