What do you mean????? Just look over codes and see what people say, some people will show a different alternative of the code but it's been fixed up and is more efficient. I heard Java For Dummies is a good book. I've never read it. Why not just read a chapter a day. It will only help you in the future that's for sure. Also here's a few things that are important.
Integers use 4 bytes of memory, booleans use I believe 1 bit....
"boolean: The boolean data type has only two possible values: true and false. Use this data type for simple flags that track true/false conditions. This data type represents one bit of information, but its "size" isn't something that's precisely defined."
Code:
boolean bool = false;
if(!bool) {
bool = true;
}
Why use something with only 2 possible values as an Integer, which has 2,147,483,647 * 2 (I believe? may be off a bit EDIT: *2 for negative lmao.) possible values.
byte = 1
short = 2
int = 4
float = 4 (not sure? it's 32bits iirc so 32/8 = 4)
double = 8
long = 8