Other 2017 FR Questions FR other years Be Prepared Home
A-2
public class MultPractice implements StudyPractice
{
  private int first, second;

  public MultPractice(int num1, int num2)
  {
    first = num1;
    second = num2;
  } 1

  public String getProblem()
  {
    return first + " TIMES " + second;
  }

  public void nextProblem()
  {
    second++;
  }
}
Notes:
  1. Or:
      public MultPractice(int first, int second)
      {
        this.first = first;
        this.second = second;
      }

Other 2017 FR Questions | Back to Contents

Copyright © 2017 by Skylight Publishing
support@skylit.com