Null String for Scanner
<p>I have a problem over my application. I want the app to detect that if the user does not input any value for the string (in other words, just press enter after being asked to input something), the app then asks whether he/she wishes to quit the program or not.<br>
Am I doing it right? </p>

<pre><code>words = s.nextLine();   
if (words.equals(null)) {
</code></pre>
