title: Java: Number Guessing Game
body: <p>My class code: <a href="http://notepad.cc/lureascu84" rel="nofollow">http://notepad.cc/lureascu84</a>
  My tester code: <a href="http://notepad.cc/mammivo62" rel="nofollow">http://notepad.cc/mammivo62</a></p>
  
  <p>I am stuck on how to import the code in the class program to use in the tester. On my simple number guess program I have:</p>
  
  <pre><code>while (guess != num){
       guess = scanner.nextInt();
  
       if (guess &gt; num){
          System.out.println("The number you have entered is too high!");
          numberOfGuesses++;
       }
  
       if (guess &lt; num){
          System.out.println("The number you have entered is too low!");
          numberOfGuesses++;
       }
    }
    System.out.println("You win with only " + numberOfGuesses + " wrong attempts!");
  </code></pre>
  
  <p>When using an accessor and mutator method I'm stuck on what to write.</p>