Q:

Java: help me parse or make sense of this line?

I am having trouble making sense of "publishResultCode", can someone please break down the meaning of that line and the operators?
String publishResultCode = value == null ? null : value.toString();
if ("SUCCESS".equals(publishResultCode)) {
  return true;

A:

Ok, so first let's clear up order of operations
String publishResultCode = ((value == null) ? null : value.toString());

Now the == operator you know is just comparison.  The question probably arises with the ? : operator.  Generally A ? B : C means "if A is true, return B; otherwise return C".  And lastly, of course = is assignment.
So:  If value is null, set publishResultCode to null; but if value is not null, set publishResultCode to the value returned by calling value.toString().

