samedi 27 juin 2015

How can I compare what a user has typed in the editText with an element of an array that i've created inbuilt in my project

I have an array of strings and below the array I have a toast that randomly chooses the element from the array and displays it on screen.

In the screen when the toast is displayed the user types in what he has seen as toast into the editText.

My question: how do I compare that string in the editText to the random element chosen from the array of strings?

Aucun commentaire:

Enregistrer un commentaire