guess_my_rule
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
guess_my_rule [2022/08/03 13:02] – [Guess My String Rule] frchris | guess_my_rule [2022/08/11 10:00] – frchris | ||
---|---|---|---|
Line 41: | Line 41: | ||
This is best using the Eclipse IDE | This is best using the Eclipse IDE | ||
<code java| GuessMyStringRule.java> | <code java| GuessMyStringRule.java> | ||
+ | /** | ||
+ | * Make up your own rule | ||
+ | | ||
+ | * @author Chris Thiel, OFMCap | ||
+ | * | ||
+ | */ | ||
import java.util.Scanner; | import java.util.Scanner; | ||
Line 49: | Line 55: | ||
public GuessMyStringRule() | public GuessMyStringRule() | ||
{ | { | ||
- | secretRule = "The String needed to contain a lower case s"; | + | // Change the following to make your own rule and hint: |
+ | |||
+ | | ||
hint = "Ben follows the rule, but bend does not"; | hint = "Ben follows the rule, but bend does not"; | ||
guess_my_rule.txt · Last modified: 2022/08/11 10:09 by frchris