I have already done last week something like that and it work but now I do not know why I forget how to do it.
I want to check all character of a string and find when it is numeral
Exemple : Patrick Desjardins 12345
I want to split that :
var1 = Patrick Desjardins
var2 = 12345
This is an idea of what I want to do but I do not want anyone here to make the code but just to check the number verification here who still do not work :
Why it's do not work ?Code:sLigne = "Patrick Desjardins 12345" for (int i=0;i<sLigne.length ();i++) { leBon = sLigne.charAt(i); for (int j=0;j<=5;j++) // number can not be over 5 { if (leBon.equals(j)) System.out.println (leBon); } }




Reply With Quote