Quote Originally Posted by Abra View Post
Isn't there a way I could use x and y as if they were a natural part of every class? How would I do that?
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.

E.g.,

Code:
public class programForLulz{

   int x, y;

   public static void main etc...