I'm trying to make a simple 2d game in a java applet. It's literally 2 different colored squares drawn into the screen in the paint method and I can't figure out collisions between the 2 squares. I've read up about getters and setters and they seem to be a big part of the process but if someone could make me a snippet if code where just 2 squares collide that would be awesome thanks