title: Java: object cannot be resolved to a variable
body: <p>my object apparently can't be resolved to a variable...</p>
  
  <p>In Game.Java:</p>
  
  <pre><code>public static void main(String[] args) {
      Slime slime = new Slime();
  }
  </code></pre>
  
  <p>In Player.Java:</p>
  
  <pre><code>public static void Attack() {
      System.out.println("Player attacks!");
      int dmg = ATTACK;
      System.out.println(dmg + " damage to Slime!");
      slime.HP -= dmg;
      System.out.println(Player.HP);
  }
  </code></pre>
  
  <p>So how do I take dmg off of slime's HP? I've done some research, this still isn't making sense.</p>