title: Creating a method to return an integer based on user string input
body: <p>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? </p>
  
  <p><strong>chosenDifficulty = userName.next().toUpperCase();</strong></p>
  
  <pre><code> public int getDifficulty() {
      int difficulty = 0;
      if (chosenDifficulty == "HUMAN") {
              difficulty = 1;
          if (chosenDifficulty == "RANDOM") {
              difficulty = 2;
          }else{
              difficulty = 3;
          }
      }
       return difficulty;
  }
  </code></pre>
  
  <p>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.</p>