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

7
LINES

< > BotCompany Repo | #1013265 // countUpperCaseCharacters

JavaX fragment (include)

static int countUpperCaseCharacters(S s) {
  int n = 0;
  for i over s:
    if (isUpperCase(s.charAt(i)))
      ++n;
  ret n;
}

Author comment

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: 354 / 387
Version history: 2 change(s)
Referenced in: [show references]