[SOLVED by RobinB]How to check if an object is not itself?

So, I have a problem. I need to loop through an arraylist of Zombies. The method that does this is inside of a Zombie object. I need to loop through all zombies except itself. So I tried this:

 if(zombie != this)
    Do crap

But that did not work. So what do I do? Googling has brought me nowhere.