IF statement skipping
<p>The input method does pass my input but the options method skips the IF statement. Does anyone know why? It works with the char character type but not String.</p>

<p>eg:</p>

<pre><code>public void input()
{
    System.out.print("Enter your option: ");
    userChoice = keyboard.nextLine;
    options(userChoice);
}

public void options(String input)
{
    if(input == "x")
        System.exit(0);
}
</code></pre>
