Search:

Type: Posts; User: Elyril

Search: Search took 0.06 seconds.

  1. Replies
    4
    Views
    5,932

    [SOLVED] Re: Odd and Even numbers with boolean?

    Nevermind.. I got it. Sorry, I was just being stupid and lazy for that last one.
  2. Replies
    4
    Views
    5,932

    [SOLVED] Re: Odd and Even numbers with boolean?

    Alright, so I changed it to:


    private static boolean iseven(int number) {
    if(number % 2 == 0) {
    iseven = true;
    }
    else {
    iseven = false;
    }
  3. Replies
    4
    Views
    5,932

    [SOLVED] Odd and Even numbers with boolean?

    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...
Results 1 to 3 of 3