Created
November 28, 2018 15:33
-
-
Save CompSciRocks/1fb35c326130063677ccb510cdb6e396 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MultPractice implements StudyPractice { | |
private int numOne; | |
private int numTwo; | |
public MultPractice(int a, int b) { | |
numOne = a; | |
numTwo = b; | |
} | |
public String getProblem() { | |
return numOne + " TIMES " + numTwo; | |
} | |
public void nextProblem() { | |
numTwo++; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface StudyPractice { | |
/** Returns the current practice problem */ | |
String getProblem(); | |
/** Changes to the next practice problem */ | |
void nextProblem(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment