Posts by Danilo Lima • 71 points
4 posts
-
0
votes1
answer39
viewsA: I can’t access the player’s Boolean, how do I proceed?
Hello, your error occurs in the denomination of boolean values. The right would be: public void keyPressed(KeyEvent e) { if(e.getKeyCode() == KeyEvent.VK_RIGHT){ player.right=true;…
-
0
votes1
answer95
viewsA: error: assignment to Expression with array type
I analyzed the code and realized that Mediasalarios is a vector, so it is necessary to pass the position you want to assign to the value of the Average of wages, so the right would be:…
-
0
votes1
answer34
viewsA: Failure to update variables
I analyzed your code quickly and as far as I could tell the problem lies in the fact that you use it armorPenetration += 20 without its variable armorPenetration has an initial value. In this case…
-
1
votes2
answers48
viewsA: Find the multiple fulgaps
First you need to redo the account of Result for each new implementation of for. The way it is currently done does not occur, in this situation you get only once a value for Result. int…