The System.out.println code is working. The second thing (timer.stop() and timer.start()) doesn't seem to be.
This is a Pong game. This checks if the ball is in the starting position. If "timer" hasn't been started, it will be in this position. Likewise for mouseExited.
EDIT: Figured it out...Just had to change code to || instead of &&.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” (Mosher's Law of Software Engineering)
“If debugging is the process of removing bugs, then programming must be the process of putting them in.” (Edsger Dijkstra)