converting Inline if to if else
<p>I am new to java and i want some help  on converting the below inline if java code to if else.</p>

<pre><code>public boolean equals(final Object obj) {
    boolean result = true;

    if (level != null ? !level.equals(log.level) : log.level != null)
    {
        result = false;
    }

    return result;
}
</code></pre>
