Please use code tags in the future so that your code is easier to read.
Besides that in your logic
you should use .equals instead of ==. But I am not the most experienced so I may be wrong, if someone else on the forum would make sure that is right.
If there are any other errors please ask.