dimanche 28 juin 2015

Check whether the string a number

I am trying to check whether the string a number is. I have tried the following which works seperatly but not together.

if (i.matches("\\d{2} | [0-9]"))

I appreciate any help.

Aucun commentaire:

Enregistrer un commentaire