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).

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

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: 237 / 314
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)