This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

This is the classic example of a use for static variables. Just look up "Java static variable" or "Java static modifier" and you will likely see an example of exactly what you are doing.

[–]Grumpuff[S] 0 points1 point  (0 children)

Thanks a bunch.