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...
Hello! I'm new too! Welcome Lol
Anybody know which one works better for them? I've tried both, but I think I prefer netbeans mainly because it is made by oracle so it'll always be updated even when Java 8, 9, 10 or whatever comes...
Hi, I'm Xha, and I'm a newbie programmer. I've played a lot with Java (and C++) and I'm going to college to major in computer science. Anyhow, I wish to get good at programming in java. It seems a...