Sorry, I have no idea what you are saying.
Type: Posts; User: Norm
Sorry, I have no idea what you are saying.
Are you asking how to define a class variable?
Define the variable in the class, not in a method.
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.
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...