title: Vairables used but eclipse says they're not?
body: <p>I'm doing some input handling in Java and I'm running into some trouble. I've got two variables (xMove and zMove) and I've used them in the code a number of times yet eclipse refuses to acknowledge their use. I have a feeling that is what's causing me problems so please take a look so I can see what I'm doing wrong </p>
  
  <pre><code>    public void tick(boolean forward, boolean back, boolean left, boolean right, boolean turnLeft, boolean turnRight) {
          double xMove = 0.0;
          double zMove = 0.0;
  
          if (forward) {
              zMove++;
          }
          if (back) {
              zMove--;
          }
          if (left) {
              xMove++;
          }
          if (right) {
              xMove--;
          }
          if (turnLeft) {
              zMove++;
          }
          if (turnRight) {
              zMove++;
          }
  
      }
  </code></pre>