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.
if(EditText1.getText().toString().equals("National")) { .. .. }
这实际上是在比较“国家”这个词不是吗?
我的需要是,它应该比较单词,但要比较“National”这个词的其余部分。
不使用 ( !):
!
if(!EditText1.getText().toString().equals("National")){...}