I have two characters displayed in a game I am writing, the player and the enemy. defined as such:
public void player(Graphics g) { g.drawImage(plimg, x,
Here's a useful of an open source game that uses a lot of collisions: http://robocode.sourceforge.net/
You may take a look at the code and complement with the answers written here.