first thing first :
Try to always use this "{}" <<

after if statement or whatever keywords java that needs to use that
its not really that important but it lets you see the code what is on that or not
second :
if(a>=10 && a<=80) race=0;
else if(a>80 && a<=100) race=1;
else if(a>=0 && a<10) race=2;
golom = new Enemy(race);
enemiesList.add(golom);
this piece of code u should declare it like this
int race = 0; //this zero means is initial u might be need or might not depends on the error
if(a>=10 && a<=80) race=0;
else if(a>80 && a<=100) race=1;
else if(a>=0 && a<10) race=2;
golom = new Enemy(race);
enemiesList.add(golom);
//quick note you might be have declared on class (not on method) in this case
if(a>=10 && a<=80) this.race=0;
else if(a>80 && a<=100) this.race=1;
else if(a>=0 && a<10) this.race=2;
golom = new Enemy(this.race);
enemiesList.add(golom);
third :
int whateverRaceWasBefore = race;
if(a>=10 && a<=80) race=0;
else if(a>80 && a<=100) race=1;
else if(a>=0 && a<10) race=2;
golom = new Enemy(whateverRaceWasBefore);
enemiesList.add(golom);
u cant do it like that u need to do it like this
int whateverRaceWasBefore = 0;
if(a>=10 && a<=80) whateverRaceWasBefore =0;
else if(a>80 && a<=100) whateverRaceWasBefore =1;
else if(a>=0 && a<10) whateverRaceWasBefore =2;
golom = new Enemy(whateverRaceWasBefore);
enemiesList.add(golom);
i do know what your mean is
if i do something like this "int whateverRaceWasBefore = race;" it doesnt mean race =/= whateverRaceWasBefore
yeah '=' here doesnt mean equal it means adding something to variable remember that
fourth : ah this is too long !
if(a>=10 && a<=80) golom = new Enemy(1);
else if(a>80 && a<=100) golom = new Enemy(2);
else if(a>=0 && a<10) golom = new Enemy(3);
golom = new Enemy(race); // <-- You instantiate Enemy AGAIN here and overwrite golem with it!!!
enemiesList.add(golom);
you dont need this code "golom = new Enemy(race);"
last : pick your poison that can work in your code
