Excuse me for my english level, I know could be better
The first
if(bole==false)
have no sense because in this point bole ALWAYS will be false.
bol will be 0 if it's not a number, 1 if it's a integer and 3 if it's a double, is this what you want?
A better way to do the same with less code line is:
Código JAVA:
Ver originalSystem.
out.
println(testNum
("10.50")); ........
public static int testNum
(String numero
) { int bol=0;
int number ;
double num ;
try {
bol=1;
}
try {
bol=3;
}
e.printStackTrace();
}
}
finally {
return bol;
}
}
}