Advertisement
Tecnelm

Untitled

Nov 16th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. public static boolean IsNumeric(String texte) {
  2. boolean test=true;
  3. for (int i = 0 ; i <texte.length();i++)
  4. {
  5. if(Character.isDigit(texte.charAt(i)))
  6. test=true;
  7. else
  8. {
  9. test=false;
  10. break;
  11. }
  12.  
  13. }
  14. return test;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement