use == for char comparison:
<pre>
char userInput = ...
if (userInput == 'N') { // do something }
</pre>
but use equals() when comparing
String:
<pre>
String userInput = ...
if ("N".equals(userInput)) { // do something }
</pre>
The above form is safer than writing
<pre>
userInput.equals("N")</pre>
because the latter will produce a NullPointerException if userInput is null.
------------------
Junilu Lacar
Sun Certified Programmer for the Java� 2 Platform