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

6
LINES

< > BotCompany Repo | #1028393 // countDigitsInString

JavaX fragment (include)

1  
static int countDigitsInString(S s) {
2  
  int n = 0;
3  
  for i over s:
4  
    if (isDigit(s.charAt(i))) ++n;
5  
  ret n;
6  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1028393
Snippet name: countDigitsInString
Eternal ID of this version: #1028393/1
Text MD5: 6946276728e2c36c19e2599db20cf79b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-15 19:45:28
Source code size: 117 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 139 / 177
Referenced in: [show references]