Help! Error: The local variable transactionType may not have been initialized
<p>I get this 
Error: The local variable transactionType may not have been initialized</p>

<p>but the thing is it is initialized in my if statement! </p>

<pre><code>if (transactionChar == 'w')
  transactionType = "Withdrawal"; 

else if (transactionChar == 'd')
  transactionType = "Deposit" ; 
</code></pre>

<p>then when i go to print out transactionType, it wont let me because it gives me that error!
 my declaration statement looks something like this. </p>

<pre><code>String transactionType;
char transactionChar;
</code></pre>

<p>Please Help. I have been trying to figure it out for the past 4 hours!</p>
