Sooo... I wanted to make a password reader where the user types the word "password" and it says that the pass is right, but it's always saying that it is wrong and i dont know why!
The issue is that passtry is an instance of the Scanner class, which won't ever equal "passcode". The Scanner.nextString method returns the string, so you can take this value and save it to a variable, then print that variable and compare it with "passcode". I've made a code to demonstrate this.