Value not initialized in if statement
<p>The below code has a compiler error: </p>

<blockquote>
  <p><code>speedMsg might not been initialized</code></p>
</blockquote>

<p>How can I fix that?</p>

<pre><code>String speedMsg;

// Determine the grade
if (speed &gt;= 150)
  speedMsg = "STOP! STOP! Please let me OUT!";
else if (speed &lt;= 150)
  speedMsg = "Whew I'll just walk from here Thanks.";
</code></pre>
