Use ( ! "hello".equals(someString) )
edit: Yes, same thing striker just posted :)
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
Yes, I bet the frendly people who help here would wish more people would search for answers before posting duplicate questions. :)
On a side note, I'm going to have to ask for help in a second, since I have a switch statement that just isn't working correctly. :(:(
Agreed. It's even more painful when someone asks "how do you do X" when "how to do X" was just answered in that same thread.
BestJewSinceJC
Posting Maven
2,772 posts since Sep 2008
Reputation Points: 874
Solved Threads: 354
Don't hijack threads with new questions. Start a new thread of your own.
And the answer to your second question is no.
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
if(!hello.equals(hello))
this will give you false
if(hello.equals(hello))
this will give you true
if(hello.equals(HELLO))
this will give you false
if(hello.equalsIgnoreCase(HELLO))
will give you true
Hope this helped!!!
didn't help..
this thread was started (and hijacked) years ago, by people who didn't come back to the forum. I seriously doubt they 'll come back just to read this answer.
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433