Thanks, I figured it out! I put the if statement before the return value and it worked like a charm!
Type: Posts; User: Xhalite
Thanks, I figured it out! I put the if statement before the return value and it worked like a charm!
But the if statement is necessary, because I then use the blockCheck method to do exactly what it says, check if the player blocks or not based on the true/false(block/!block) in the Game class...
The error on the if statement is "unreachable statement". The error on "public static boolean..." is "missing return statement, missing javadoc". I thought I did put in a return statement and I know...
Okay, so I have a class and in this class I have a method that runs a random boolean generator and I want to make it so that, depending on the value, it does one thing or the other. It's part of the...