title: How to change button text with a character?
body: <p>I want to change button text with a character of a string which entered into a textview.I tried "settext" but faced with error. </p>
  
  <pre><code>    @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      a=(Button)findViewById(R.id.button1);
      tv1=(TextView)findViewById(R.id.textView1);
      tv2=(TextView)findViewById(R.id.textView2);
      String word=tv2.getText().toString();
      a.setText(word.charAt(3));
  </code></pre>