Java “VariableDeclaratorId expected after this token”
问题 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. class entity{ public int health; public int accuracy; public int power; public int defense; } And public class Tutorial { static Random rnd = new