Maybe you should step back and make a simple test case.
static public void test( String running, String status){
return !"RUNNING".equals(running) && !" OK".equals(status);
}
Now have a main.
public static void main(String[] args){
System.out.println( test( "fail", " OK") );
System.out.println( test( "RUNNING", "fail) );
System.out.println( test( "this one", "is true") );
}
If you like using extra parenthesis to be clearer then the condition can be changed to.
( !"RUNNING".equals(running) ) && ( !" OK".equals(status) );
I use the "String".equals form because it removes the chance of an NPE but it isn't necessary.
To use this criteria in an if statement.
if( ( !"RUNNING".equals(running) ) && ( !" OK".equals(status) ) ){
//do something.
} else{
//do something else.
System.out.println(running + ", " + status);
}