Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    8
    Views
    961

    Re: maintain value of integer

    Sorry, I have no idea what you are saying.
  2. Replies
    8
    Views
    961

    Re: maintain value of integer

    Are you asking how to define a class variable?
    Define the variable in the class, not in a method.
  3. Replies
    8
    Views
    961

    Re: maintain value of integer

    If you want the value of i to be remembered from one call to the next as it is changed, then i must be defined outside of any method as a class variable.
  4. Replies
    8
    Views
    961

    Re: maintain value of integer

    The variable i is local to the method: getPriority() and will always start with the value assigned in the method.

    Can you explain what you want that method to do? The way it is coded it will...
Results 1 to 4 of 4