Search:

Type: Posts; User: Norm

Search: Search took 0.21 seconds.

  1. Replies
    20
    Views
    1,844

    [SOLVED] Re: Can't reassign boolean value!

    I would not recommend using static variables.
  2. Replies
    20
    Views
    1,844

    [SOLVED] Re: Can't reassign boolean value!

    A problem I see with your coding technique is that you use too many global variables(class variables). You set the value of a class member in one method and use it in another. Methods set global...
  3. Replies
    20
    Views
    1,844

    [SOLVED] Re: Can't reassign boolean value!

    Glad you got it fixed.
  4. Replies
    20
    Views
    1,844

    [SOLVED] Re: Can't reassign boolean value!

    If you can not provide some values for userSelection that shows the problem, there is no way to test the code and try to fix the problem.
  5. Replies
    20
    Views
    1,844

    [SOLVED] Re: Can't reassign boolean value!

    What is the data that this code uses?
    What is the value of userSelection?
    Change the code you posted to have it assign a value to userSelection.
    Something like this:
    String userSelection =...
  6. Replies
    20
    Views
    1,844

    [SOLVED] Re: Can't reassign boolean value!

    Where is the data that this program uses? If you have a console that shows the values of the input and the values of the variables as the program executes, post it. Be sure to include the print out...
  7. Replies
    20
    Views
    1,844

    [SOLVED] Re: Can't reassign boolean value!

    How are you generating the date object?
    Can you show the values of the arguments you are using to create the date?

    Post some code that returns the 0 value from the call to getActualMaximum()
  8. Replies
    20
    Views
    1,844

    [SOLVED] Re: Can't reassign boolean value!

    Add the println right after the assignment statement.

    The assignment would be executed when the if statement is true. The question is: Is the if statement true?
    Print out the values tested in...
  9. Replies
    20
    Views
    1,844

    [SOLVED] Re: Can't reassign boolean value!

    Is this statement executed?
    discount = true;
    If you don't execute the above, the value won't change.

    Did the println you put next to it print out anything?


    Did you print out the value of...
  10. Replies
    20
    Views
    1,844

    [SOLVED] Re: Can't reassign boolean value!

    Why do you think the boolean is being set to true? Add a println statement next to where you are setting it true to verify that it is being set to true. Print out the value of the condition in the...
Results 1 to 10 of 10