title: TextView not printing after entry into edit text
body: <p>I have this code in my <code>MainActivity.java</code> file, but when any value is typed into the edit text and the button is pressed, the related string does not print. How can I make it so that when the button is pressed, a certain text displays based on the string entered in the edit text slot?  </p>
  
  <pre class="lang-java prettyprint-override"><code>public void ShowAge(View view){
  
          EditText entered = (EditText)findViewById(R.id.typehere);
          TextView value = (TextView)findViewById(R.id.answer);
          if(entered.getText().toString() == "Dog"){
              value.setText(R.string.dog);
              Typeface typeFace = Typeface.createFromAsset(getAssets(), "font.ttf");
              value.setTypeface(typeFace);}
          else if(entered.getText().toString() == "Cat"){
              value.setText(R.string.cat);
              Typeface typeFace = Typeface.createFromAsset(getAssets(), "font.ttf");
              value.setTypeface(typeFace);}
          else if(entered.getText().toString() == "Meal"){
              value.setText(R.string.meal);
              Typeface typeFace = Typeface.createFromAsset(getAssets(), "font.ttf");
              value.setTypeface(typeFace);}
          else if(entered.getText().toString() == "Chocolate"){
              value.setText(R.string.chocolate);
              Typeface typeFace = Typeface.createFromAsset(getAssets(), "font.ttf");
              value.setTypeface(typeFace);}
          else if(entered.getText().toString() == "Froyo"){
              value.setText(R.string.froyo);
              Typeface typeFace = Typeface.createFromAsset(getAssets(), "font.ttf");
              value.setTypeface(typeFace);}
          }
  </code></pre>