title: Java "VariableDeclaratorId expected after this token"
body: <p>I'm working on a little project for fun, that's essentially a little combat emulator. I'm trying to use a class similar to struct in C++, as in using it to create an object (in this case, a character or "entity", as the class is called). I'm getting the error in the title when attempting to call any integer in said class from the main function.</p>
  
  <pre><code>class entity{
      public int health;
      public int accuracy;
      public int power;
      public int defense;
  }
  </code></pre>
  
  <p>And</p>
  
  <pre><code>public class Tutorial {
      static Random rnd = new Random();
      entity player;
      player.health = 100;  // Issue on the health part
      player.accuracy = 19; // Issue on the accuracy part
      player.power = 15;    // Issue on the power part
      player.defense = 18;  // I think you get it by now...
  </code></pre>
  
  <p>I've been looking around for a while to find some explanation, but there's none that I could find that explain the nature of the error as well as possible fixes for my situation. If I could get those, it would be wonderful.</p>