Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Trupti Patil   on Feb 20 In Java Category.

  
Question Answered By: Mansur Bashara   on Feb 20

Your sayig you want to check that a does not equal c?
If so then:

if(!a.equals(c))
{
//code This will be executed if a does _not_ equal c
}

Notice the '!', that is the inverse operator, which is will turn true to
false, and false  to true, therefore the above logic would work.
Hope I understood you correctly, and vice versa

Share: 

 

This Question has 5 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Questing about String Or get search suggestion and latest updates.


Tagged: