dimanche 28 janvier 2018

How to make a string match to all other in android

I want to enter into the true block of the if condition for any NAME in the following code. So how i can declare the string NAME to match it with all models.getName.

if(models.getName().equals(NAME))

I'm using this inside a loop along with other conditions like shown in below and the NAME does not contains a value all the type. So at the time when NAME is empty i need to skip that condition check. But need to check other two.

if(models.getName().equals(NAME)&&models.getType().equals(ClgType)&&models.getUniversity().equals(University))

Aucun commentaire:

Enregistrer un commentaire