Please wrap your code in the code tags.
What errors you can see?
Also, read the difference about == and .equals() for String comparison.