Nevermind.. I got it. Sorry, I was just being stupid and lazy for that last one.
Type: Posts; User: Elyril
Nevermind.. I got it. Sorry, I was just being stupid and lazy for that last one.
Alright, so I changed it to:
private static boolean iseven(int number) {
if(number % 2 == 0) {
iseven = true;
}
else {
iseven = false;
}
Okay, so I'm trying to figure out how to determine if an integer is even or odd by using a boolean method. I think I have the method right, but it's calling the method into the main that has got me...