1 | static int countUpperCaseCharacters(S s) { |
2 | int n = 0; |
3 | for i over s: |
4 | if (isUpperCase(s.charAt(i))) |
5 | ++n; |
6 | ret n; |
7 | } |
Began life as a copy of #1013264
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1013265 |
Snippet name: | countUpperCaseCharacters |
Eternal ID of this version: | #1013265/3 |
Text MD5: | b0b67c23a0857bc08ec75e49d2c31c75 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-31 01:41:55 |
Source code size: | 133 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 434 / 470 |
Version history: | 2 change(s) |
Referenced in: | [show references] |