Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的意图是在下面放一个Edittext,和a Button,当用户放一个特定的单词并单击按钮时,该值是正确的,而其他所有不同的单词都是错误的..如何用代码识别它?
Edittext
Button
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 : }}