static int countDots(S s) { int n = l(s), count = 0; for i to n: if (s.charAt(i) == '.') ++count; ret count; }
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: | #1024571 |
Snippet name: | countDots |
Eternal ID of this version: | #1024571/2 |
Text MD5: | 4fdb39a7d6bb8c3e9db7b5eb707b7157 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-18 20:12:35 |
Source code size: | 120 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 295 / 348 |
Version history: | 1 change(s) |
Referenced in: | [show references] |