Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1029750 // isAllDigits

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2498L/16K).

1  
sbool isAllDigits(S s) {
2  
  int n = l(s);
3  
  for i to n:
4  
    if (!isDigit(s.charAt(i))) false;
5  
  true;
6  
}

Author comment

Began life as a copy of #1000567

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1029750
Snippet name: isAllDigits
Eternal ID of this version: #1029750/2
Text MD5: 78edddc4f546619ad786937b4c62f48e
Transpilation MD5: 0bdc7a13ad5eb53bbf87d75aab472079
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-09-11 15:14:30
Source code size: 107 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 109 / 170
Version history: 1 change(s)
Referenced in: [show references]