My idea is something like this but I dont know the correct code
if (mystring.matches(\"[0-9.]+\")){ //do something here }else{ //do something here } <
if (mystring.matches(\"[0-9.]+\")){ //do something here }else{ //do something here }
int count=0; For(int i=0;i