Search:

Type: Posts; User: Cornix

Search: Search took 0.10 seconds.

  1. Replies
    13
    Views
    1,301

    Re: Boolean Method Problem

    If you write "boolean a = true;" you create a new boolean variable called "a" and assign the value "true" to it. If you just write "a = true" you assign the value "true" to a previously defined...
  2. Replies
    13
    Views
    1,301

    Re: Boolean Method Problem

    You are getting closer, but you still have a little error in your class "CurseTest".
    The problem is, that your variables are never changed. They will always keep their initial value, that is...
  3. Replies
    13
    Views
    1,301

    Re: Boolean Method Problem

    You have to use the input from the user. You must NOT use "true" or "false" at all when calling the method. Use variables that store what the user has entered.
  4. Replies
    13
    Views
    1,301

    Re: Boolean Method Problem

    I would say its 2^5 different combinations, but thats just an educated guess.

    You probably want to save the input from the user in private member variables and then send the input to your...
  5. Replies
    13
    Views
    1,301

    Re: Boolean Method Problem

    You defined the outcome of your method like this:

    And you have a method with a signature like this:

    public boolean detectCurse(boolean addsLessThan7,
    boolean...
  6. Replies
    13
    Views
    1,301

    Re: Boolean Method Problem

    I would guess its probably an error because of improper indention.
    Indent all your curly brackets correctly as per the java style convention and you are probably going to be able to see the mistake...
Results 1 to 6 of 6