title: How to write a call or method as a regular expression in my Java code?
body: <p>My Homework Problem:
  Create a class named Lease with fields that hold an apartment tenant’s name, apartment number, monthly rent amount, and term of the lease in months. Include a constructor that initializes the name to “XXX”, the apartment number to 0, the rent to 1000, and the term to 12. Also, include methods to get and set each of the fields. Include a nonstatic method named addPetFee() that adds $10 to the monthly rent value and calls a static method named explainPetPolicy() that explains the pet fee as follows: A pet fee of $10 is added to the monthly rent.</p>
  
  <p>Create a class named TestLease whose main() method declares four Lease objects. Call a getData() method three times. Within the method, prompt a user for values for each field for a Lease, and return a Lease object to the main() method where it is assigned to one of main()’s Lease objects. Do not prompt the user for values for the fourth Lease object, but let it continue to hold the default values. Then, in main(), pass one of the Lease objects to the showValues() method that displays the data. Then call the addPetFee() method using the passed Lease object and confirm that the fee explanation statement is displayed. Next, call the showValues() method for the Lease object again and confirm that the pet fee has been added to the rent. Finally, call the showValues() method with each of the other three objects; confirm that two holds the values you supplied as input and one holds the constructor default values.</p>
  
  <p>I completed the coding for both classes, and it all works great!  Unfortunatley, I received an error message.  I need help with this one error message.  Maybe, someone can help me understand.</p>
  
  <p>My code and its error message are below:</p>
  
  <pre><code>   ''' getData(leaseOne);
      '''getData(leaseTwo);
      '''getData(leaseThree);
  
  
    '''  public static Lease getData(Lease l){
  
    '''      Scanner input = new Scanner(System.in);
  
    '''      System.out.println("Enter Tenant's Name: ");
     '''     String name = input.nextLine();
     '''     l.setName(name);
  
      '''    System.out.println("Enter Apartment Number: ");
      '''    int aptNumber = input.nextInt();
      '''    l.setAptNumber(aptNumber);
  
      '''    System.out.println("Enter Amount of Rent: ");
      '''    double rent = input.nextDouble();            
      '''    l.setRent(rent);
  
       '''   System.out.println("Enter Term of Lease: ");
       '''   int term = input.nextInt();
       '''   l.setTerm(term);
  
       '''   return l;
    '''  }
  </code></pre>
  
  <p>Here is what the homework grading system explained to me:</p>
  
  <p>Code PatternIncomplete
  TestLease contains calls for getData</p>
  
  <p>Description
  Searched your code for a specific pattern:</p>
  
  <p>getData(backslash symbol here)((backslash symbol here)); </p>
  
  <p>I now understand that it wants me to write the getData(); call as or with a regular expression, but I don't understand how.  I included the call to the method and the method in my code example.  I read and read about regular expressions.  I am struggling with it.  Please help me understand how to write the getData(); call as a regular expression, according to my code.</p>
  
  <p>I already created everything else as the instructions ask.  Everything else passed.</p>