Teleporting When Using Collision?

I have a four rectangle set-up for my player to handle collisions: one top rectangle, one on the left, one on the right, and one on the bottom.

Basically, when I try jumping and the top of my Player hits the bottom of a platform, it’ll teleport slightly to the left.

When it hits the left side of the platform, it’ll teleport several blocks to the right and underneath the platform.

When it hits the RIGHT side of the platform, it’ll instantly teleport to the ground. I pretty much copied the code in this tutorial, line for line:

I don’t understand what’s happening, it works perfectly fine in the video. Here’s the entire class, the issue is occurring in the Collision method. tempObject refers to Block objects in the game.

http://www.java-gaming.org/?action=pastebin&id=1256

Nevermind, I figured it out. Basically, I switched the code for the right and left collisions, so it was making the teleporting all whack.