I am not too great at java, but I'm trying to create a method that takes input from the user and returns a value. However difficulty always returns 0? 

**chosenDifficulty = userName.next().toUpperCase();**

```
 public int getDifficulty() {
    int difficulty = 0;
    if (chosenDifficulty == "HUMAN") {
            difficulty = 1;
        if (chosenDifficulty == "RANDOM") {
            difficulty = 2;
        }else{
            difficulty = 3;
        }
    }
     return difficulty;
}

```

Thanks for any help, it may just be because its late, but i really can't figure it out....or maybe its just not possible to do it this way....thanks in advance for any help.