The idea of object-oriented programming is for this exact reason.
Boat and Mine should not be classes, they should be new objects made from another class (we'll call it - waterStuff).
class waterStuff {
public xPosition;
public yPosition;
}
... then somewhere in the code you set them to new objects. I don't use Java so I'll do it as close as I can:
(these would probably be inside another class using the waterStuff as a namespace for reference)
Boat = new waterStuff;
Mine = new waterStuff;
Boat->xPosition = 3;
Boat->yPosition = 4;
Mine->xPosition = 1;
Mine->yPosition = 1;
I wish I could be more java-specific but hopefully this gets you on the right track.
EDIT: Don't you just love CS101