Example: I have a EditText and 1 Button (onclick: example). I want to check the first word that typed in EditText.
public void example (View v) {
if (edittext.getText().toString() .... //How to check the first word that typed in edittext,
ex: if the first word typed in edittext equalsIgnoreCase("a")){
//Action
}