User Tools

Site Tools


guess_my_rule

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
guess_my_rule [2022/08/03 12:56] – [Guess My String Rule] frchrisguess_my_rule [2022/08/11 10:00] frchris
Line 11: Line 11:
 ==== Guess My Integer Rule==== ==== Guess My Integer Rule====
 This is best used with the BlueJ IDE where you can make an instance of a class without writing a ''main'' method. This is best used with the BlueJ IDE where you can make an instance of a class without writing a ''main'' method.
-<code>/**+<code java| GuessMyIntegerRule.java>/**
  * Make up your own rule  * Make up your own rule
    
Line 40: Line 40:
 ==== Guess My String Rule ==== ==== Guess My String Rule ====
 This is best using the Eclipse IDE This is best using the Eclipse IDE
-<code>+<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: 
 + 
 +                secretRule = "The String needed to contain a lower case s";
  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

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki