Search:

Type: Posts; User: newbie

Search: Search took 0.11 seconds.

  1. Replies
    8
    Views
    4,579

    Re: Writing a very simple "Poker" game in Java

    Yeah, you can simply just say.. return (i != 0); aslong as the method type is set to return a boolean ofcourse.
  2. Replies
    8
    Views
    4,579

    Re: Writing a very simple "Poker" game in Java

    You can make checkRange() return a boolean instead of an int.. or you can change bool to an int depending on what you're trying to do.
    Remember to take while (!bool); into consideration when you...
  3. Replies
    8
    Views
    4,579

    Re: Writing a very simple "Poker" game in Java

    boolean bool = false;
    bool = checkRange(paramArrayOfInt);

    bool is a boolean value, but checkRange(int[] i) returns an int.
Results 1 to 3 of 3