Please keep the discussion of this topic in the original thread.

http://www.javaprogrammingforums.com/whats-wrong-my-code/30470-logical.html

Thread locked.