It's been a while since I've used Java as well, but if I understand your question correctly, you can simply declare x and y as global variables. This is accomplished by declaring them outside of all of your methods. |
|
It's been a while since I've used Java as well, but if I understand your question correctly, you can simply declare x and y as global variables. This is accomplished by declaring them outside of all of your methods. |
|
Bookmarks