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