I Cannot Get If/Else Statement to Prove True with Scanner
<p>Help. I'm new to Java programming so I'll try to make the best of your terms.
I was wondering how to get this program to register as true. When I type in "password" as an input, it does not execute any code from the "if" body. I also pasted this code in another class and it still doesn't work, regardless.</p>

<p>I've worked on this program for about a half an hour, and debugging it for twice as long. Please look through the coding.</p>

<pre><code>import java.util.Scanner;

public class whileloop {

    public void whileloop1() {

        //DEBUG THIS PROGRAM! "password" does not work for input

        System.out.println("Please enter the password to continue: ");
        Scanner password = new Scanner(System.in);
        String passwordinput = password.nextLine();

        System.out.println("This is your entered password: " + passwordinput);

        if (passwordinput == "password") {

            System.out.println("Startup sequence has been iniciated.");
            System.out.println("System is working correctly.");

            //Terminate all here ---

         } else {

             System.out.println("Wrong password! Terminating program. /END");

        }

        System.out.println("Supressing the program's scanner!");
        password.close();

    }

}   
</code></pre>
