0

My intention is to put an Edittext, and a Button below, and when the user put an specific word and click the button, the value is correct, and all the other different words are wrong.. How to identify it with codes?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Jaume Colom Ferrer
  • 334
  • 1
  • 3
  • 13

1 Answers1

0
  btn.onClickListiner(this);

  @Override
   public void onClick(View v) {
      if (v == btn) {
   // check word
     String word = editText.getText().toString(); // don't forget "toString()" .
    // checking word below :

  }}
Prachi
  • 3,584
  • 2
  • 24
  • 39