What does the ? and : mean in this statement in Java? : <p>What exactly does this mean? </p>

<pre><code>String path = selectedPath.equals("/") ? "/" : selectedDir;
</code></pre>

<p>What I think it is saying is set path to the selectedPath if it equals "/" and if it doesn't set the path to selectedDir.</p>
