title: "the method ** is undefined for the type string" in Eclipse
body: <p>I am currently completing a project and am trying to create a menu. The menu itself works alright but when I try and link to the other java file that the method itself is in I get the error "the method <em>method name</em> is undefined for the type String". Below is the code that I am using to try and link to the method in the other java file.</p>
  
  <pre><code>        {
          if (menuChoice.equals("A"))
          {
              System.out.print("Enter the Movie ID: ");
              movieID = sc.nextLine();
              movieID.borrowMovie();
          }
          if (menuChoice.equals("a"))
          {
              System.out.print("Enter the Movie ID: ");
              movieID = sc.nextLine();
              movieID.borrowMovie();
          }
          if (menuChoice.equals("B"))
          {
              System.out.print("Enter the Movie ID: ");
              movieID = sc.nextLine();
              movieID.returnMovie();
          }
          if (menuChoice.equals("b"))
          {
              System.out.print("Enter the Movie ID: ");
              movieID = sc.nextLine();
              movieID.returnMovie();
          }
  </code></pre>
  
  <p>Further to, below is the code of the 2 methods that I am trying to link to in the other java file. It is a requirement of the project to have 2 separate class files and to demonstrate how to use them both together but this part has got me stumped!</p>
  
  <pre><code>// Implement borrowMovie method
  public double borrowMovie(String memberID)
  {
      if (this.isOnLoan = false)
      {
          this.isOnLoan = true;
      }
      else 
      {
          return Double.NaN;
      }
      }
  
  // Implement returnMovie method
  public double returnMovie(int daysBorrowed)
  {
      if (this.isOnLoan = false)
      {
          return Double.NaN;
      }
      else
      {
          this.isOnLoan = false;
  
      }
  }
  </code></pre>
  
  <p>Any help at all will be appreciated :)</p>