title: Android : Store text in string
body: <p>I have an activity in which a toast returns the other part of sentence if we put the first part of sentence correctly. I want to get the other part (twinkle twinkle) from the Android resources, but I don't know how.</p>
  
  <pre><code> final EditText     hetext=(EditText)findViewById(R.id.Text1);        
          Button btn=(Button)findViewById(R.id.Button1);
  
          btn.setOnClickListener(new View.OnClickListener()
          {
              @Override
              public void onClick(View v)
          {
  
          final String edittext= hetext.getText().toString();
                      if(edittext.trim().equals("twinkle twinkle"))
                      {
  
  
   // toast ( little star )
  
                  }  
  
                  else
                  {
  
  
  //toast ( the word is not matching) 
  
                  }
  </code></pre>